Compare commits
2 Commits
97a57a1a4d
...
a529685493
| Author | SHA1 | Date | |
|---|---|---|---|
| a529685493 | |||
| b8d0f83d19 |
@@ -1,2 +1,2 @@
|
|||||||
creation_rules:
|
creation_rules:
|
||||||
- age: age1hvzwr0a0m6wlx3tprsfawdlrr7dcxkutxehjqcjp06xglxc0yd3smlqv22
|
- age: age1kn9632x2upcckl5jr9h2xda9l9j6r23u3pzjdp4v7vdjs42fpq3qur2qf0
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
./system/networking.nix
|
./system/networking.nix
|
||||||
./system/nixos.nix
|
./system/nixos.nix
|
||||||
./system/security.nix
|
./system/security.nix
|
||||||
|
./system/sops.nix
|
||||||
./system/time.nix
|
./system/time.nix
|
||||||
./system/users.nix
|
./system/users.nix
|
||||||
];
|
];
|
||||||
|
|||||||
11
nodes/hosts/common/system/sops.nix
Normal file
11
nodes/hosts/common/system/sops.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{ config, inputs, ... }: {
|
||||||
|
sops = {
|
||||||
|
defaultSopsFile = "/home/jay/nixverse/private/secrets.yaml"
|
||||||
|
secrets = {
|
||||||
|
jay_password = {
|
||||||
|
neededForUsers = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,16 +1,16 @@
|
|||||||
{ config, inputs, ... }: {
|
{ config, inputs, ... }: {
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
#sops.secrets = {
|
sops.secrets = {
|
||||||
# jay_password_hash = { };
|
jay_password_hash = { };
|
||||||
#};
|
};
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
#mutableUsers = false;
|
mutableUsers = false;
|
||||||
users.jay = {
|
users.jay = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "jay";
|
description = "jay";
|
||||||
#hashedPasswordFile = config.sops.secrets.jay_password_hash.path;
|
hashedPasswordFile = config.sops.secrets.jay_password.path;
|
||||||
hashedPassword = "$6$RTOXVXRP1iLIXnQb$rVtTeqlJ7g3AcZgftmVdKFnT2ggCsnVayPlT4beLST9Oz2LHGT2fdcOC/yaQkISK3wzFLqh47fSHgQvRUWpl41";
|
#hashedPassword = "$6$RTOXVXRP1iLIXnQb$rVtTeqlJ7g3AcZgftmVdKFnT2ggCsnVayPlT4beLST9Oz2LHGT2fdcOC/yaQkISK3wzFLqh47fSHgQvRUWpl41";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
2
private
2
private
Submodule private updated: ae90639abd...2e3b2acef3
Reference in New Issue
Block a user