rest of the split migration
This commit is contained in:
41
config/stylix-home.nix
Normal file
41
config/stylix-home.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
let
|
||||
schemesFile = import ./schemes.nix {
|
||||
inherit pkgs inputs;
|
||||
};
|
||||
scheme = schemesFile.schemes.paul;
|
||||
cfg = osConfig.my.stylix;
|
||||
gnomeEnabled = osConfig.services.desktopManager.gnome.enable;
|
||||
in
|
||||
{
|
||||
gtk = lib.mkIf (!cfg.enable && gnomeEnabled) {
|
||||
enable = true;
|
||||
iconTheme = {
|
||||
name = "Papirus-Light";
|
||||
package = pkgs.papirus-icon-theme.override {
|
||||
color = "yellow";
|
||||
};
|
||||
};
|
||||
};
|
||||
stylix = {
|
||||
inherit (cfg) enable;
|
||||
autoEnable = cfg.enable;
|
||||
iconTheme = {
|
||||
enable = true;
|
||||
package = scheme.iconPackage;
|
||||
light = "Papirus-Light";
|
||||
dark = "Papirus-Dark";
|
||||
};
|
||||
targets.librewolf = {
|
||||
firefoxGnomeTheme.enable = true;
|
||||
profileNames = [ config.home.username ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user