dotfiles/systems/ceres/config/comfyui.nix

68 lines
1.3 KiB
Nix
Raw Normal View History

2025-07-19 19:06:11 -05:00
{
2025-07-19 19:11:24 -05:00
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
];
2025-07-19 19:06:11 -05:00
services.comfyui = {
enable = true;
openFirewall = true;
2025-07-19 19:11:24 -05:00
host = localhost;
2025-07-19 19:06:11 -05:00
package = pkgs.comfyuiPackages.comfyui.override {
extensions = with pkgs.comfyuiPackages.extensions; [
acly-inpaint
acly-tooling
cubiq-ipadapter-plus
fannovel16-controlnet-aux
];
commandLineArgs = [
"--preview-method"
"auto"
];
};
};
2025-07-19 21:16:51 -05:00
# fileSystems."/var/lib/${service.name}" = {
# device = service.paths.path0;
# fsType = "none";
# options = [
# "bind"
# ];
# depends = [
# ceres.storage0.mount
# ];
# };
2025-07-19 19:11:24 -05:00
2025-07-19 21:16:51 -05:00
# systemd.tmpfiles.rules = [
# "Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
# "Z ${service.sops.path0} 755 ${service.name} ${service.name} -"
# ];
2025-07-19 19:11:24 -05:00
users.users.${service.name}.extraGroups = [
"users"
];
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
2025-07-19 19:06:11 -05:00
}