diff options
author | sefidel <contact@sefidel.net> | 2024-08-04 22:24:39 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-08-06 16:01:39 +0900 |
commit | 2e3f69dfceecbc8c392b6c3e5076cd3aee56b069 (patch) | |
tree | fef94fa94127c98762358449de97fde805c2d9d3 | |
parent | 336c701e81ad9c2ef321b933f9406b739ffe5aac (diff) | |
download | nixrc-2e3f69dfceecbc8c392b6c3e5076cd3aee56b069.tar.gz nixrc-2e3f69dfceecbc8c392b6c3e5076cd3aee56b069.zip |
feat(modules/atticd)!: import atticd inside module
-rw-r--r-- | modules/services/atticd.nix | 6 | ||||
-rw-r--r-- | nixos/default.nix | 3 |
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: { |