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

View file

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