From 758f23573647f2ff1b61f18d725aea0801d268ca Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 19:02:02 -0500 Subject: [PATCH 1/8] feat: added comfy ui --- flake.nix | 1 + modules/nixos/services/comfyui/default.nix | 62 ++++----------- services/comfyui/default.nix | 88 ++++++++++++++++++++++ 3 files changed, 102 insertions(+), 49 deletions(-) create mode 100644 services/comfyui/default.nix diff --git a/flake.nix b/flake.nix index fb166fa..0d2df58 100755 --- a/flake.nix +++ b/flake.nix @@ -121,6 +121,7 @@ ceres = inputs.self.lib.mkLinuxSystem [ ./systems/ceres ./profiles/user0 + ./services/comfyui config.nixosModules.ceres config.nixosModules.core config.nixosModules.mantle diff --git a/modules/nixos/services/comfyui/default.nix b/modules/nixos/services/comfyui/default.nix index cb8615a..7fdc26d 100755 --- a/modules/nixos/services/comfyui/default.nix +++ b/modules/nixos/services/comfyui/default.nix @@ -1,55 +1,19 @@ +{ config, pkgs, ... }: { - config, - pkgs, - flake, - ... -}: -let - inherit (flake.config.machines.devices) ceres; - inherit (flake.config.services.instances) comfyui web; - inherit (flake.config.people) user0; - service = comfyui; - localhost = web.localhost.address1; -in -{ - services.comfyui = { enable = true; - # package = pkgs.comfyui-nvidia; - host = localhost; - user = service.name; - acceleration = "cuda"; - # models = builtins.attrValues { - # inherit (pkgs.nixified-ai) - # models - # ; - # }; - # customNodes = builtins.attrValues { - # inherit (comfyui.pkgs) - # comfyui-gguf - # comfyui-impact-pack - # ; - # }; - }; - fileSystems."/var/lib/${service.name}" = { - device = service.paths.path0; - fsType = "none"; - options = [ - "bind" - ]; - depends = [ - ceres.storage0.mount - ]; - }; - - systemd.tmpfiles.rules = [ - "Z ${service.paths.path0} 755 ${service.name} ${service.name} -" - ]; - - networking = { - firewall = { - allowedTCPPorts = [ - service.ports.port0 + openFirewall = true; + host = "0.0.0.0"; # Allow external connections + package = pkgs.comfyuiPackages.comfyui.override { + extensions = with pkgs.comfyuiPackages.extensions; [ + acly-inpaint + acly-tooling + cubiq-ipadapter-plus + fannovel16-controlnet-aux + ]; + commandLineArgs = [ + "--preview-method" + "auto" ]; }; }; diff --git a/services/comfyui/default.nix b/services/comfyui/default.nix new file mode 100644 index 0000000..1679abd --- /dev/null +++ b/services/comfyui/default.nix @@ -0,0 +1,88 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + cfg = config.services.comfyui; +in +{ + imports = [ ]; + + options = { + services.comfyui = with lib; { + enable = mkEnableOption "ComfyUI service"; + + package = mkOption { + type = types.package; + default = pkgs.comfyuiPackages.comfyui.override { + extensions = with pkgs.comfyuiPackages.extensions; [ + # Add desired extensions here + # Example extensions: + # acly-inpaint + # acly-tooling + # cubiq-ipadapter-plus + # fannovel16-controlnet-aux + ]; + commandLineArgs = [ + "--preview-method" + "auto" + ]; + }; + description = "The ComfyUI package to use"; + }; + + port = mkOption { + type = types.port; + default = 8188; + description = "Port to listen on"; + }; + + host = mkOption { + type = types.str; + default = "127.0.0.1"; + description = "Host to bind to"; + }; + + openFirewall = mkOption { + type = types.bool; + default = false; + description = "Open ports in the firewall"; + }; + }; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = [ cfg.package ]; + + networking.firewall = lib.mkIf cfg.openFirewall { + allowedTCPPorts = [ cfg.port ]; + }; + + systemd.services.comfyui = { + description = "ComfyUI Service"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + + serviceConfig = { + Type = "simple"; + ExecStart = "${cfg.package}/bin/comfyui --port ${toString cfg.port} --listen ${cfg.host}"; + Restart = "on-failure"; + User = "comfyui"; + Group = "comfyui"; + WorkingDirectory = "/var/lib/comfyui"; + }; + }; + + users.users.comfyui = { + group = "comfyui"; + isSystemUser = true; + home = "/var/lib/comfyui"; + createHome = true; + }; + + users.groups.comfyui = { }; + }; +} From ee68cdee72504456d8e44d491200a4e431fb5f9d Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 19:06:11 -0500 Subject: [PATCH 2/8] feat: added comfy ui --- modules/nixos/services/comfyui/default.nix | 100 +++++++++++++++++---- services/comfyui/default.nix | 88 ------------------ systems/ceres/config/comfyui.nix | 20 +++++ 3 files changed, 104 insertions(+), 104 deletions(-) mode change 100755 => 100644 modules/nixos/services/comfyui/default.nix delete mode 100644 services/comfyui/default.nix create mode 100755 systems/ceres/config/comfyui.nix diff --git a/modules/nixos/services/comfyui/default.nix b/modules/nixos/services/comfyui/default.nix old mode 100755 new mode 100644 index 7fdc26d..1679abd --- a/modules/nixos/services/comfyui/default.nix +++ b/modules/nixos/services/comfyui/default.nix @@ -1,20 +1,88 @@ -{ config, pkgs, ... }: { - services.comfyui = { - enable = true; - openFirewall = true; - host = "0.0.0.0"; # Allow external connections - package = pkgs.comfyuiPackages.comfyui.override { - extensions = with pkgs.comfyuiPackages.extensions; [ - acly-inpaint - acly-tooling - cubiq-ipadapter-plus - fannovel16-controlnet-aux - ]; - commandLineArgs = [ - "--preview-method" - "auto" - ]; + config, + lib, + pkgs, + ... +}: + +let + cfg = config.services.comfyui; +in +{ + imports = [ ]; + + options = { + services.comfyui = with lib; { + enable = mkEnableOption "ComfyUI service"; + + package = mkOption { + type = types.package; + default = pkgs.comfyuiPackages.comfyui.override { + extensions = with pkgs.comfyuiPackages.extensions; [ + # Add desired extensions here + # Example extensions: + # acly-inpaint + # acly-tooling + # cubiq-ipadapter-plus + # fannovel16-controlnet-aux + ]; + commandLineArgs = [ + "--preview-method" + "auto" + ]; + }; + description = "The ComfyUI package to use"; + }; + + port = mkOption { + type = types.port; + default = 8188; + description = "Port to listen on"; + }; + + host = mkOption { + type = types.str; + default = "127.0.0.1"; + description = "Host to bind to"; + }; + + openFirewall = mkOption { + type = types.bool; + default = false; + description = "Open ports in the firewall"; + }; }; }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = [ cfg.package ]; + + networking.firewall = lib.mkIf cfg.openFirewall { + allowedTCPPorts = [ cfg.port ]; + }; + + systemd.services.comfyui = { + description = "ComfyUI Service"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + + serviceConfig = { + Type = "simple"; + ExecStart = "${cfg.package}/bin/comfyui --port ${toString cfg.port} --listen ${cfg.host}"; + Restart = "on-failure"; + User = "comfyui"; + Group = "comfyui"; + WorkingDirectory = "/var/lib/comfyui"; + }; + }; + + users.users.comfyui = { + group = "comfyui"; + isSystemUser = true; + home = "/var/lib/comfyui"; + createHome = true; + }; + + users.groups.comfyui = { }; + }; } diff --git a/services/comfyui/default.nix b/services/comfyui/default.nix deleted file mode 100644 index 1679abd..0000000 --- a/services/comfyui/default.nix +++ /dev/null @@ -1,88 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: - -let - cfg = config.services.comfyui; -in -{ - imports = [ ]; - - options = { - services.comfyui = with lib; { - enable = mkEnableOption "ComfyUI service"; - - package = mkOption { - type = types.package; - default = pkgs.comfyuiPackages.comfyui.override { - extensions = with pkgs.comfyuiPackages.extensions; [ - # Add desired extensions here - # Example extensions: - # acly-inpaint - # acly-tooling - # cubiq-ipadapter-plus - # fannovel16-controlnet-aux - ]; - commandLineArgs = [ - "--preview-method" - "auto" - ]; - }; - description = "The ComfyUI package to use"; - }; - - port = mkOption { - type = types.port; - default = 8188; - description = "Port to listen on"; - }; - - host = mkOption { - type = types.str; - default = "127.0.0.1"; - description = "Host to bind to"; - }; - - openFirewall = mkOption { - type = types.bool; - default = false; - description = "Open ports in the firewall"; - }; - }; - }; - - config = lib.mkIf cfg.enable { - environment.systemPackages = [ cfg.package ]; - - networking.firewall = lib.mkIf cfg.openFirewall { - allowedTCPPorts = [ cfg.port ]; - }; - - systemd.services.comfyui = { - description = "ComfyUI Service"; - wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; - - serviceConfig = { - Type = "simple"; - ExecStart = "${cfg.package}/bin/comfyui --port ${toString cfg.port} --listen ${cfg.host}"; - Restart = "on-failure"; - User = "comfyui"; - Group = "comfyui"; - WorkingDirectory = "/var/lib/comfyui"; - }; - }; - - users.users.comfyui = { - group = "comfyui"; - isSystemUser = true; - home = "/var/lib/comfyui"; - createHome = true; - }; - - users.groups.comfyui = { }; - }; -} diff --git a/systems/ceres/config/comfyui.nix b/systems/ceres/config/comfyui.nix new file mode 100755 index 0000000..7fdc26d --- /dev/null +++ b/systems/ceres/config/comfyui.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: +{ + services.comfyui = { + enable = true; + openFirewall = true; + host = "0.0.0.0"; # Allow external connections + package = pkgs.comfyuiPackages.comfyui.override { + extensions = with pkgs.comfyuiPackages.extensions; [ + acly-inpaint + acly-tooling + cubiq-ipadapter-plus + fannovel16-controlnet-aux + ]; + commandLineArgs = [ + "--preview-method" + "auto" + ]; + }; + }; +} From be42ee2e3ad3a276edc5950f4e1d0484b47b93a6 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 19:06:30 -0500 Subject: [PATCH 3/8] feat: added comfy ui --- flake.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0d2df58..fb166fa 100755 --- a/flake.nix +++ b/flake.nix @@ -121,7 +121,6 @@ ceres = inputs.self.lib.mkLinuxSystem [ ./systems/ceres ./profiles/user0 - ./services/comfyui config.nixosModules.ceres config.nixosModules.core config.nixosModules.mantle From faf32125cd7eca268412d68e491e621be4c2682b Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 19:08:22 -0500 Subject: [PATCH 4/8] feat: added comfy ui --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index fb166fa..b4ca93a 100755 --- a/flake.nix +++ b/flake.nix @@ -62,7 +62,7 @@ url = "gitlab:InvraNet/zen-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; - nixified-ai.url = "github:nixified-ai/flake"; + nix-comfyui.url = "github:dyscorv/nix-comfyui"; }; outputs = inputs: From 6c17093c3008e988cccb8318ffdb96af6a10ad55 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 19:09:02 -0500 Subject: [PATCH 5/8] feat: added comfy ui --- flake.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/flake.nix b/flake.nix index b4ca93a..3dc0d8e 100755 --- a/flake.nix +++ b/flake.nix @@ -129,7 +129,6 @@ # inputs.ngipkgs.nixosModules."services.peertube" # inputs.ngipkgs.nixosModules.default inputs.sops-nix.nixosModules.sops - inputs.nixified-ai.nixosModules.comfyui ]; }; templates = { From 7a087f91bbd4edc489765406726c1a348cf758f4 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 19:11:24 -0500 Subject: [PATCH 6/8] feat: added comfy ui --- modules/nixos/services/comfyui/default.nix | 2 + systems/ceres/config/comfyui.nix | 51 +++++++++++++++++++++- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/modules/nixos/services/comfyui/default.nix b/modules/nixos/services/comfyui/default.nix index 1679abd..90cb702 100644 --- a/modules/nixos/services/comfyui/default.nix +++ b/modules/nixos/services/comfyui/default.nix @@ -2,10 +2,12 @@ config, lib, pkgs, + flake, ... }: let + inherit (flake.config.people) user0; cfg = config.services.comfyui; in { diff --git a/systems/ceres/config/comfyui.nix b/systems/ceres/config/comfyui.nix index 7fdc26d..371bee3 100755 --- a/systems/ceres/config/comfyui.nix +++ b/systems/ceres/config/comfyui.nix @@ -1,9 +1,29 @@ -{ config, pkgs, ... }: { + config, + pkgs, + flake, + ... +}: +let + inherit (flake.config.machines.devices) + ceres + ; + inherit (flake.config.services.instances) + comfyui + web + ; + service = comfyui; + localhost = web.localhost.address1; +in +{ + nixpkgs.overlays = [ + flake.inputs.nix-comfyui.overlays.default + ]; + services.comfyui = { enable = true; openFirewall = true; - host = "0.0.0.0"; # Allow external connections + host = localhost; package = pkgs.comfyuiPackages.comfyui.override { extensions = with pkgs.comfyuiPackages.extensions; [ acly-inpaint @@ -17,4 +37,31 @@ ]; }; }; + # fileSystems."/var/lib/${service.name}" = { + # device = service.paths.path0; + # fsType = "none"; + # options = [ + # "bind" + # ]; + # depends = [ + # ceres.storage0.mount + # ]; + # }; + + # systemd.tmpfiles.rules = [ + # "Z ${service.paths.path0} 755 ${service.name} ${service.name} -" + # "Z ${service.sops.path0} 755 ${service.name} ${service.name} -" + # ]; + + users.users.${service.name}.extraGroups = [ + "users" + ]; + + networking = { + firewall = { + allowedTCPPorts = [ + service.ports.port0 + ]; + }; + }; } From 4051afa41a2821a58a937843a047f3986dcc49f0 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 20:10:14 -0500 Subject: [PATCH 7/8] feat: added comfy ui --- flake.lock | 219 ++++++++++++++++++------------- systems/ceres/config/comfyui.nix | 28 ++-- 2 files changed, 144 insertions(+), 103 deletions(-) diff --git a/flake.lock b/flake.lock index 850dbc4..c111c28 100755 --- a/flake.lock +++ b/flake.lock @@ -277,48 +277,6 @@ } }, "flake-parts_3": { - "inputs": { - "nixpkgs-lib": [ - "nixified-ai", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1733312601, - "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "flake-parts_4": { - "inputs": { - "nixpkgs-lib": [ - "nixified-ai", - "hercules-ci-effects", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1733312601, - "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", - "type": "github" - }, - "original": { - "id": "flake-parts", - "type": "indirect" - } - }, - "flake-parts_5": { "inputs": { "nixpkgs-lib": [ "nur", @@ -398,7 +356,24 @@ }, "flake-utils_4": { "inputs": { - "systems": "systems_7" + "systems": "systems_6" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "id": "flake-utils", + "type": "indirect" + } + }, + "flake-utils_5": { + "inputs": { + "systems": "systems_8" }, "locked": { "lastModified": 1731533236, @@ -564,28 +539,6 @@ "type": "github" } }, - "hercules-ci-effects_2": { - "inputs": { - "flake-parts": "flake-parts_4", - "nixpkgs": [ - "nixified-ai", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1733333617, - "narHash": "sha256-nMMQXREGvLOLvUa0ByhYFdaL0Jov0t1wzLbKjr05P2w=", - "owner": "hercules-ci", - "repo": "hercules-ci-effects", - "rev": "56f8ea8d502c87cf62444bec4ee04512e8ea24ea", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "hercules-ci-effects", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [ @@ -1126,23 +1079,45 @@ "type": "github" } }, - "nixified-ai": { + "nix-comfyui": { "inputs": { - "flake-parts": "flake-parts_3", - "hercules-ci-effects": "hercules-ci-effects_2", - "nixpkgs": "nixpkgs_3" + "flake-utils": "flake-utils_4", + "nixpkgs": "nixpkgs_3", + "poetry2nix": "poetry2nix" }, "locked": { - "lastModified": 1747142274, - "narHash": "sha256-5WuEIrM4yTSMMoxJHQ9RBwO0liBE9KcCldyiBfcYIHU=", - "owner": "nixified-ai", - "repo": "flake", - "rev": "ba83e9b493f5fd278abe8ee91040323296da3f39", + "lastModified": 1733961600, + "narHash": "sha256-kEM0Dck4K4dg9QYmdldy62av+XzsNz9XhfTAhtGWwzo=", + "owner": "dyscorv", + "repo": "nix-comfyui", + "rev": "cbd17e10b53dcf8fd9f5ba6f3c1ea1a550082659", "type": "github" }, "original": { - "owner": "nixified-ai", - "repo": "flake", + "owner": "dyscorv", + "repo": "nix-comfyui", + "type": "github" + } + }, + "nix-github-actions": { + "inputs": { + "nixpkgs": [ + "nix-comfyui", + "poetry2nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1729742964, + "narHash": "sha256-B4mzTcQ0FZHdpeWcpDYPERtyjJd/NIuaQ9+BV1h+MpA=", + "owner": "nix-community", + "repo": "nix-github-actions", + "rev": "e04df33f62cdcf93d73e9a04142464753a16db67", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-github-actions", "type": "github" } }, @@ -1230,18 +1205,16 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1734424634, - "narHash": "sha256-cHar1vqHOOyC7f1+tVycPoWTfKIaqkoe1Q6TnKzuti4=", + "lastModified": 1733749988, + "narHash": "sha256-+5qdtgXceqhK5ZR1YbP1fAUsweBIrhL38726oIEAtDs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "d3c42f187194c26d9f0309a8ecc469d6c878ce33", + "rev": "bc27f0fde01ce4e1bfec1ab122d72b7380278e68", "type": "github" }, "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" + "id": "nixpkgs", + "type": "indirect" } }, "nixpkgs_4": { @@ -1294,11 +1267,11 @@ }, "nur": { "inputs": { - "flake-parts": "flake-parts_5", + "flake-parts": "flake-parts_3", "nixpkgs": [ "nixpkgs" ], - "treefmt-nix": "treefmt-nix_2" + "treefmt-nix": "treefmt-nix_3" }, "locked": { "lastModified": 1749427072, @@ -1314,6 +1287,37 @@ "type": "github" } }, + "poetry2nix": { + "inputs": { + "flake-utils": [ + "nix-comfyui", + "flake-utils" + ], + "nix-github-actions": "nix-github-actions", + "nixpkgs": [ + "nix-comfyui", + "nixpkgs" + ], + "systems": [ + "nix-comfyui", + "flake-utils", + "systems" + ], + "treefmt-nix": "treefmt-nix_2" + }, + "locked": { + "lastModified": 1731205797, + "narHash": "sha256-F7N1mxH1VrkVNHR3JGNMRvp9+98KYO4b832KS8Gl2xI=", + "owner": "nix-community", + "repo": "poetry2nix", + "rev": "f554d27c1544d9c56e5f1f8e2b8aff399803674e", + "type": "github" + }, + "original": { + "id": "poetry2nix", + "type": "indirect" + } + }, "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat_2", @@ -1434,13 +1438,13 @@ "lix-module": "lix-module", "ngipkgs": "ngipkgs", "niri": "niri", - "nixified-ai": "nixified-ai", + "nix-comfyui": "nix-comfyui", "nixos-cosmic": "nixos-cosmic", "nixpkgs": "nixpkgs_5", "nur": "nur", "pre-commit-hooks-nix": "pre-commit-hooks-nix", "sops-nix": "sops-nix_2", - "systems": "systems_6", + "systems": "systems_7", "waybar": "waybar", "yazi": "yazi", "zed-editor": "zed-editor", @@ -1671,6 +1675,21 @@ } }, "systems_6": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_7": { "locked": { "lastModified": 1680978846, "narHash": "sha256-Gtqg8b/v49BFDpDetjclCYXm8mAnTrUzR0JnE2nv5aw=", @@ -1685,7 +1704,7 @@ "type": "github" } }, - "systems_7": { + "systems_8": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", @@ -1723,6 +1742,28 @@ } }, "treefmt-nix_2": { + "inputs": { + "nixpkgs": [ + "nix-comfyui", + "poetry2nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1730120726, + "narHash": "sha256-LqHYIxMrl/1p3/kvm2ir925tZ8DkI0KA10djk8wecSk=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "9ef337e492a5555d8e17a51c911ff1f02635be15", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, + "treefmt-nix_3": { "inputs": { "nixpkgs": [ "nur", @@ -1840,7 +1881,7 @@ }, "yazi": { "inputs": { - "flake-utils": "flake-utils_4", + "flake-utils": "flake-utils_5", "nixpkgs": "nixpkgs_6", "rust-overlay": "rust-overlay_3" }, diff --git a/systems/ceres/config/comfyui.nix b/systems/ceres/config/comfyui.nix index 371bee3..5145170 100755 --- a/systems/ceres/config/comfyui.nix +++ b/systems/ceres/config/comfyui.nix @@ -37,21 +37,21 @@ in ]; }; }; - # fileSystems."/var/lib/${service.name}" = { - # device = service.paths.path0; - # fsType = "none"; - # options = [ - # "bind" - # ]; - # depends = [ - # ceres.storage0.mount - # ]; - # }; + fileSystems."/var/lib/${service.name}" = { + device = service.paths.path0; + fsType = "none"; + options = [ + "bind" + ]; + depends = [ + ceres.storage0.mount + ]; + }; - # systemd.tmpfiles.rules = [ - # "Z ${service.paths.path0} 755 ${service.name} ${service.name} -" - # "Z ${service.sops.path0} 755 ${service.name} ${service.name} -" - # ]; + systemd.tmpfiles.rules = [ + "Z ${service.paths.path0} 755 ${service.name} ${service.name} -" + "Z ${service.sops.path0} 755 ${service.name} ${service.name} -" + ]; users.users.${service.name}.extraGroups = [ "users" From e8969ab83761c174d3350680d2e052eb3a7723ad Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 19 Jul 2025 21:16:51 -0500 Subject: [PATCH 8/8] feat: added comfy ui --- systems/ceres/config/comfyui.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/systems/ceres/config/comfyui.nix b/systems/ceres/config/comfyui.nix index 5145170..371bee3 100755 --- a/systems/ceres/config/comfyui.nix +++ b/systems/ceres/config/comfyui.nix @@ -37,21 +37,21 @@ in ]; }; }; - fileSystems."/var/lib/${service.name}" = { - device = service.paths.path0; - fsType = "none"; - options = [ - "bind" - ]; - depends = [ - ceres.storage0.mount - ]; - }; + # fileSystems."/var/lib/${service.name}" = { + # device = service.paths.path0; + # fsType = "none"; + # options = [ + # "bind" + # ]; + # depends = [ + # ceres.storage0.mount + # ]; + # }; - systemd.tmpfiles.rules = [ - "Z ${service.paths.path0} 755 ${service.name} ${service.name} -" - "Z ${service.sops.path0} 755 ${service.name} ${service.name} -" - ]; + # systemd.tmpfiles.rules = [ + # "Z ${service.paths.path0} 755 ${service.name} ${service.name} -" + # "Z ${service.sops.path0} 755 ${service.name} ${service.name} -" + # ]; users.users.${service.name}.extraGroups = [ "users"