about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-04 22:24:39 +0900
committersefidel <contact@sefidel.net>2024-08-06 16:01:39 +0900
commit2e3f69dfceecbc8c392b6c3e5076cd3aee56b069 (patch)
treefef94fa94127c98762358449de97fde805c2d9d3
parent336c701e81ad9c2ef321b933f9406b739ffe5aac (diff)
downloadnixrc-2e3f69dfceecbc8c392b6c3e5076cd3aee56b069.tar.gz
nixrc-2e3f69dfceecbc8c392b6c3e5076cd3aee56b069.zip
feat(modules/atticd)!: import atticd inside module
-rw-r--r--modules/services/atticd.nix6
-rw-r--r--nixos/default.nix3
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/services/atticd.nix b/modules/services/atticd.nix
index ef79871..e2a7f55 100644
--- a/modules/services/atticd.nix
+++ b/modules/services/atticd.nix
@@ -1,10 +1,14 @@
-{ config, lib, pkgs, ... }:
+{ config, inputs, lib, pkgs, ... }:
 
 with lib;
 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";
 
diff --git a/nixos/default.nix b/nixos/default.nix
index 4af435a..237f275 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -6,7 +6,6 @@
     nixpkgs = unstable;
     extraModules = [
       inputs.sops-nix.nixosModules.sops
-      inputs.attic.nixosModules.atticd
     ];
   };
 
@@ -15,7 +14,6 @@
     nixpkgs = unstable;
     extraModules = [
       inputs.sops-nix.nixosModules.sops
-      inputs.attic.nixosModules.atticd
     ];
   };
 
@@ -24,7 +22,6 @@
     nixpkgs = unstable;
     extraModules = [
       inputs.sops-nix.nixosModules.sops
-      inputs.attic.nixosModules.atticd
     ];
     overlays = [
       (final: prev: {