refactor(homeModules/desktop): rm option declarations
This commit is contained in:
parent
ccdd8d19d9
commit
aa9a28fa1c
9 changed files with 16 additions and 32 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue