diff --git a/nixos/modules/users.nix b/nixos/modules/users.nix index 3468219..119457f 100644 --- a/nixos/modules/users.nix +++ b/nixos/modules/users.nix @@ -1,8 +1,8 @@ { config, pkgs, lib, ... }: { #sops.defaultSopsFile = ../secrets + "/${config.networking.hostName}/secrets.yaml"; - sops.secrets.felix-password.neededForUsers = true; - sops.secrets.felix-password = { }; + sops.secrets."users/felix/password".neededForUsers = true; + sops.secrets."users/felix/password" = { }; users.users.felix = { isNormalUser = true; @@ -19,7 +19,7 @@ "networkmanager" "video" ]; - passwordFile = config.sops.secrets.felix-password.path; + passwordFile = config.sops.secrets."users/felix/password".path; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" ]; };