diff --git a/modules/nixos/core/security.nix b/modules/nixos/core/security.nix index 64a7771..81112ec 100644 --- a/modules/nixos/core/security.nix +++ b/modules/nixos/core/security.nix @@ -1,4 +1,4 @@ -{ inputs, lib, ... }: +{ ... }: { programs.gnupg.agent = { @@ -30,8 +30,5 @@ mutableUsers = false; }; - sops = { - defaultSopsFile = lib.mkFirst inputs.secrets.path; - age.keyFile = "/nix/config/keys.txt"; - }; + sops.age.keyFile = "/nix/config/keys.txt"; } diff --git a/modules/nixos/user/caem.nix b/modules/nixos/user/caem.nix index 57a6583..a92688c 100644 --- a/modules/nixos/user/caem.nix +++ b/modules/nixos/user/caem.nix @@ -1,6 +1,11 @@ -{ config, pkgs, ... }: +{ config, pkgs, inputs, ... }: { + sops.secrets.upasswd = { + neededForUsers = true; + sopsFile = inputs.secrets.paths.upasswd; + }; + users.users.caem = { isNormalUser = true; shell = pkgs.zsh;