From 8676a2e29491ffa56d619f44211248731ac1a490 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 12 Nov 2024 17:24:09 +0900 Subject: feat(modules/atticd): use nixpkgs module --- modules/services/atticd.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/services') diff --git a/modules/services/atticd.nix b/modules/services/atticd.nix index e2a7f55..fe11074 100644 --- a/modules/services/atticd.nix +++ b/modules/services/atticd.nix @@ -5,10 +5,6 @@ let cfg = config.modules.services.atticd; in { - imports = [ - inputs.attic.nixosModules.atticd - ]; - options.modules.services.atticd = { enable = mkEnableOption "Whether to enable atticd, a Multi-tenant Nix Binary Cache"; @@ -28,7 +24,7 @@ in (mkIf cfg.enable { services.atticd = { enable = true; - credentialsFile = cfg.secrets.attic-credentials; + environmentFile = cfg.secrets.attic-credentials; settings = { listen = "[::]:4005"; @@ -108,7 +104,7 @@ in # NOTE: currently this expects `attic/config.toml` to be manually # generated and placed on `/var/lib/atticd-watch-store` Environment = "XDG_CONFIG_HOME=/var/lib/atticd-watch-store"; - ExecStart = "${pkgs.attic}/bin/attic watch-store hydra"; + ExecStart = "${pkgs.attic-client}/bin/attic watch-store hydra"; Restart = "on-failure"; RestartSec = "5s"; ProtectKernelLogs = true; -- cgit 1.4.1