More sops secret setup.
Compilation fix.
This commit is contained in:
11
nodes/hosts/common/system/sops.nix
Normal file
11
nodes/hosts/common/system/sops.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ config, inputs, lib, ... }: {
|
||||
sops = {
|
||||
defaultSopsFile = "/home/jay/nixverse/private/secrets.yaml";
|
||||
secrets = {
|
||||
jay_password = {
|
||||
neededForUsers = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{ config, inputs, ... }: {
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
#sops.secrets = {
|
||||
# jay_password_hash = { };
|
||||
#};
|
||||
sops.secrets = {
|
||||
jay_password_hash = { };
|
||||
};
|
||||
|
||||
users = {
|
||||
#mutableUsers = false;
|
||||
mutableUsers = false;
|
||||
users.jay = {
|
||||
isNormalUser = true;
|
||||
description = "jay";
|
||||
#hashedPasswordFile = config.sops.secrets.jay_password_hash.path;
|
||||
hashedPassword = "$6$RTOXVXRP1iLIXnQb$rVtTeqlJ7g3AcZgftmVdKFnT2ggCsnVayPlT4beLST9Oz2LHGT2fdcOC/yaQkISK3wzFLqh47fSHgQvRUWpl41";
|
||||
hashedPasswordFile = config.sops.secrets.jay_password.path;
|
||||
#hashedPassword = "$6$RTOXVXRP1iLIXnQb$rVtTeqlJ7g3AcZgftmVdKFnT2ggCsnVayPlT4beLST9Oz2LHGT2fdcOC/yaQkISK3wzFLqh47fSHgQvRUWpl41";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user