users: update secrets path

This commit is contained in:
Felix Buehler 2022-11-30 14:59:18 +01:00
parent ea7e49e453
commit 922fef8f9b

View file

@ -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" ];
};