refactor(stylix): extract shared stylix overrides into 'targets.nix'
This commit is contained in:
@@ -25,21 +25,6 @@ in
|
|||||||
sansSerif = config.stylix.fonts.monospace;
|
sansSerif = config.stylix.fonts.monospace;
|
||||||
emoji = config.stylix.fonts.monospace;
|
emoji = config.stylix.fonts.monospace;
|
||||||
};
|
};
|
||||||
targets = {
|
targets = import ../../../modules/stylix/targets.nix;
|
||||||
firefox = {
|
|
||||||
profileNames = [ "default" ];
|
|
||||||
colorTheme.enable = true;
|
|
||||||
};
|
|
||||||
librewolf = {
|
|
||||||
profileNames = [ "default" ];
|
|
||||||
colorTheme.enable = true;
|
|
||||||
};
|
|
||||||
gnome.enable = false;
|
|
||||||
gtk.enable = false;
|
|
||||||
kitty = {
|
|
||||||
variant256Colors = true;
|
|
||||||
};
|
|
||||||
nixvim.enable = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,20 +30,7 @@ in
|
|||||||
|
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
{
|
{
|
||||||
stylix.targets = {
|
stylix.targets = import ./targets.nix;
|
||||||
firefox = {
|
|
||||||
profileNames = [ "default" ];
|
|
||||||
colorTheme.enable = true;
|
|
||||||
};
|
|
||||||
librewolf = {
|
|
||||||
profileNames = [ "default" ];
|
|
||||||
colorTheme.enable = true;
|
|
||||||
};
|
|
||||||
kitty.variant256Colors = true;
|
|
||||||
gnome.enable = false;
|
|
||||||
gtk.enable = false;
|
|
||||||
nixvim.enable = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
14
modules/stylix/targets.nix
Normal file
14
modules/stylix/targets.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
firefox = {
|
||||||
|
profileNames = [ "default" ];
|
||||||
|
colorTheme.enable = true;
|
||||||
|
};
|
||||||
|
librewolf = {
|
||||||
|
profileNames = [ "default" ];
|
||||||
|
colorTheme.enable = true;
|
||||||
|
};
|
||||||
|
kitty.variant256Colors = true;
|
||||||
|
gnome.enable = false;
|
||||||
|
gtk.enable = false;
|
||||||
|
nixvim.enable = false;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user