diff --git a/flake.nix b/flake.nix index ca0ffa3..e5f6ebc 100644 --- a/flake.nix +++ b/flake.nix @@ -138,9 +138,10 @@ in (lib.nixosSystem { specialArgs = { inherit inputs otherHosts; }; - modules = [ + modules = with inputs; [ #((import ./module.nix) { inherit inputs; }) - inputs.sidonia.nixosModules.sidonia + sidonia.nixosModules.sidonia + sops-nix.nixosModules.sops (lib.path.append ./hosts hostName) ]; }); diff --git a/hosts/tsumugi/default.nix b/hosts/tsumugi/default.nix index 33fd850..67859ef 100644 --- a/hosts/tsumugi/default.nix +++ b/hosts/tsumugi/default.nix @@ -19,7 +19,6 @@ ./ups.nix ]; networking.hostName = "tsumugi"; - sops.secrets."tsumugi/cacheKey.pem" = {}; sidonia = { userName = "shiraui"; stateVer = "24.05"; @@ -39,4 +38,10 @@ }; }; }; + sops = { + defaultSopsFile = ../../../secrets/secrets.yaml; + defaultSopsFormat = "yaml"; + age.keyFile = "/home/${config.sidonia.userName}/.config/sops/age/keys.txt"; + secrets."tsumugi/cacheKey.pem" = { }; + }; }