feat(homeModules): add stableDiffusionWebUi

This commit is contained in:
Mohammad Rafiq 2025-05-20 19:48:19 +08:00
parent 48c80b9d95
commit 2100857817
No known key found for this signature in database
3 changed files with 105 additions and 9 deletions

View file

@ -2,6 +2,7 @@
config,
lib,
osConfig,
pkgs,
...
}:
{
@ -11,12 +12,20 @@
terminal = lib.pantheon.mkStrOption;
};
config = {
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.";
}
];
};
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 = [
".local/share/stable-diffusion-webui"
];
})
];
}