refactor(homeModules/desktop): rm option declarations

This commit is contained in:
Mohammad Rafiq 2025-05-21 09:52:57 +08:00
parent ccdd8d19d9
commit aa9a28fa1c
No known key found for this signature in database
9 changed files with 16 additions and 32 deletions

View file

@ -6,23 +6,7 @@
...
}:
{
options.desktop = {
windowManager = lib.pantheon.mkStrOption;
lockscreen = lib.pantheon.mkStrOption;
browser = lib.pantheon.mkStrOption;
terminal = lib.pantheon.mkStrOption;
notification-daemon = lib.pantheon.mkStrOption;
};
config = lib.mkMerge [
{
assertions = [
{
assertion = (osConfig.desktop.windowManager == config.desktop.windowManager);
message = "You have set your home window manager to one that is not installed on this system.";
}
];
}
(lib.mkIf (osConfig.hardware.gpu == "nvidia") {
home.packages = [ pkgs.stable-diffusion-webui.forge.cuda ];
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [