feat(homeModules): add stableDiffusionWebUi
This commit is contained in:
parent
48c80b9d95
commit
2100857817
3 changed files with 105 additions and 9 deletions
|
@ -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"
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue