feat(desktop): enable stable-diffusion-webui-forge module on nemesis system
This commit is contained in:
parent
9167a54ace
commit
3040105f9c
5 changed files with 14 additions and 12 deletions
12
flake.lock
generated
12
flake.lock
generated
|
@ -624,16 +624,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748219198,
|
"lastModified": 1749893259,
|
||||||
"narHash": "sha256-RRDI12SLfm9lP7tq4vUr/c/TRj0+mgRjAThdnwTJgIE=",
|
"narHash": "sha256-xf2axyf+WuoSfDWQLhQigfms2qzSZzLwlFK7VwVxTkw=",
|
||||||
"owner": "Janrupf",
|
"owner": "rrvsh",
|
||||||
"repo": "stable-diffusion-webui-nix",
|
"repo": "stable-diffusion-webui-nix",
|
||||||
"rev": "381e5de206d4962d94a8ebc97d6dc04395928e0c",
|
"rev": "0c3ebba0812cc3aa34ed16c6b4a85d96fbb2722f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "Janrupf",
|
"owner": "rrvsh",
|
||||||
"ref": "main",
|
"ref": "add-forge-module",
|
||||||
"repo": "stable-diffusion-webui-nix",
|
"repo": "stable-diffusion-webui-nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
stable-diffusion-webui-nix.inputs.flake-utils.follows = "flake-utils";
|
stable-diffusion-webui-nix.inputs.flake-utils.follows = "flake-utils";
|
||||||
stable-diffusion-webui-nix.inputs.nixpkgs.follows = "nixpkgs";
|
stable-diffusion-webui-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
stable-diffusion-webui-nix.inputs.python-flexseal.follows = "python-flexseal";
|
stable-diffusion-webui-nix.inputs.python-flexseal.follows = "python-flexseal";
|
||||||
stable-diffusion-webui-nix.url = "github:Janrupf/stable-diffusion-webui-nix/main";
|
stable-diffusion-webui-nix.url = "github:rrvsh/stable-diffusion-webui-nix/add-forge-module";
|
||||||
stylix.inputs.flake-compat.follows = "flake-compat";
|
stylix.inputs.flake-compat.follows = "flake-compat";
|
||||||
stylix.inputs.flake-parts.follows = "flake-parts";
|
stylix.inputs.flake-parts.follows = "flake-parts";
|
||||||
stylix.inputs.nur.follows = "nur";
|
stylix.inputs.nur.follows = "nur";
|
||||||
|
@ -81,6 +81,7 @@
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
|
stable-diffusion-webui-nix.nixosModules.default
|
||||||
];
|
];
|
||||||
homes.modules = with inputs; [
|
homes.modules = with inputs; [
|
||||||
impermanence.homeManagerModules.impermanence
|
impermanence.homeManagerModules.impermanence
|
||||||
|
|
|
@ -13,10 +13,6 @@ in
|
||||||
{
|
{
|
||||||
config = mkIf upstreamCfg.enable (mkMerge [
|
config = mkIf upstreamCfg.enable (mkMerge [
|
||||||
(lib.mkIf (osConfig.hardware.gpu == "nvidia") {
|
(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"
|
|
||||||
];
|
|
||||||
})
|
})
|
||||||
(lib.mkIf osConfig.desktop.enableSpotifyd {
|
(lib.mkIf osConfig.desktop.enableSpotifyd {
|
||||||
services.spotifyd.enable = true;
|
services.spotifyd.enable = true;
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||||
NVD_BACKEND = "direct";
|
NVD_BACKEND = "direct";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.substituters = [ "https://cuda-maintainers.cachix.org" ];
|
nix.settings.substituters = [ "https://cuda-maintainers.cachix.org" ];
|
||||||
nix.settings.trusted-public-keys = [
|
nix.settings.trusted-public-keys = [
|
||||||
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
|
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../common.nix
|
../common.nix
|
||||||
|
@ -32,5 +33,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
client.enable = true;
|
client.enable = true;
|
||||||
};
|
};
|
||||||
|
sd-webui-forge = {
|
||||||
|
enable = true;
|
||||||
|
listen = true;
|
||||||
|
extraArgs = "--cuda-malloc";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue