From 922fef8f9bc9388b2774d8d2b9be5f9ec62cba38 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Wed, 30 Nov 2022 14:59:18 +0100 Subject: [PATCH] users: update secrets path --- nixos/modules/users.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" ]; };