global/hm-system-defaults: make some profiles global

This commit is contained in:
Infinidoge 2023-08-03 11:18:45 -04:00
parent f0017d381e
commit b24034aa53
2 changed files with 17 additions and 14 deletions

View file

@ -8,7 +8,11 @@
}; };
sharedModules = [ sharedModules = [
{ ({ profiles, ... }: {
imports = with profiles; [
htop
];
home = { home = {
stateVersion = config.system.stateVersion; stateVersion = config.system.stateVersion;
sessionVariables = { sessionVariables = {
@ -24,16 +28,20 @@
}; };
}; };
}; };
} })
(lib.mkIf config.services.xserver.enable { (lib.mkIf config.services.xserver.enable {
xsession.enable = true; xsession.enable = true;
}) })
(lib.mkIf config.info.graphical { (lib.mkIf config.info.graphical ({ profiles, ... }: {
imports = with profiles; [
kitty
];
xdg.systemDirs.data = [ xdg.systemDirs.data = [
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}" "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}" "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
]; ];
}) }))
]; ];
}; };
} }

View file

@ -10,16 +10,11 @@ in
home = { config, main, profiles, ... }: { home = { config, main, profiles, ... }: {
imports = flatten [ imports = flatten [
(with profiles; [ (ifGraphical' (with profiles; [
htop rofi
themeing
(ifGraphical' [ flameshot
kitty ]))
rofi
themeing
flameshot
])
])
./config ./config
]; ];