diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-07-18 14:47:10 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-07-18 14:47:10 -0500 |
commit | 19ecf4423b5e7ba8f4d22a776315bf65a23ce8df (patch) | |
tree | d18ed5985d4e0f40d2666a3996f7d8781b304fd3 /modules/root/secrets.nix | |
parent | 842e31b4acbb591dc413f30fce139f1e51a26d3e (diff) | |
download | nixos-19ecf4423b5e7ba8f4d22a776315bf65a23ce8df.tar.xz nixos-19ecf4423b5e7ba8f4d22a776315bf65a23ce8df.zip |
cleanup secrets
Diffstat (limited to 'modules/root/secrets.nix')
-rw-r--r-- | modules/root/secrets.nix | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/root/secrets.nix b/modules/root/secrets.nix index 38346b2..416bcde 100644 --- a/modules/root/secrets.nix +++ b/modules/root/secrets.nix @@ -1,18 +1,8 @@ -{ lib, pkgs, inputs, config, userDetails, ... }: { +{ inputs, config, userDetails, ... }: { imports = [ inputs.sops-nix.nixosModules.sops ]; sops = { defaultSopsFormat = "yaml"; age.sshKeyPaths = [ "${userDetails.home}/.ssh/id_ed25519" "/root/.ssh/id_ed25519" ]; - - secrets = { - wpa_supplicant-conf = lib.mkIf config.wifi.enable { - sopsFile = ./resources/secrets/wpa_supplicant-conf.yaml; - }; - hashed-root-password = lib.mkIf config.users.setPassword.enable { - sopsFile = ./resources/secrets/hashed-root-password.yaml; - neededForUsers = true; - }; - }; }; } |