about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-11-12 17:24:09 +0900
committersefidel <contact@sefidel.net>2024-11-12 18:16:09 +0900
commit8676a2e29491ffa56d619f44211248731ac1a490 (patch)
tree672947bffb80c58e8613a66a1c2463c96761ffc9 /modules/services
parent55370d6a8fd82beb20c42bf3040fe5a76d6a31fd (diff)
downloadnixrc-8676a2e29491ffa56d619f44211248731ac1a490.tar.gz
nixrc-8676a2e29491ffa56d619f44211248731ac1a490.zip
feat(modules/atticd): use nixpkgs module
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/atticd.nix8
1 files changed, 2 insertions, 6 deletions
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;