move secret stuff in own dir
This commit is contained in:
parent
f640e44fd5
commit
0b8bd0acc1
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
||||||
/secret/
|
/secret/
|
||||||
*.secret
|
|
||||||
|
|
|
@ -488,7 +488,7 @@ in
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
};
|
};
|
||||||
environment.etc."mail/secrets" = {
|
environment.etc."mail/secrets" = {
|
||||||
text = builtins.readFile "/nix/data/nixos/mail.secret";
|
text = builtins.readFile "/nix/data/nixos/secret/mail.secret";
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,10 @@ in
|
||||||
|
|
||||||
users.root = {
|
users.root = {
|
||||||
# init password
|
# init password
|
||||||
hashedPassword = builtins.readFile "/nix/data/nixos/password.secret";
|
hashedPassword = builtins.readFile "/nix/data/nixos/secret/password.secret";
|
||||||
|
|
||||||
# use fixed auth keys
|
# use fixed auth keys
|
||||||
openssh.authorizedKeys.keys = pkgs.lib.splitString "\n" (builtins.readFile "/nix/data/nixos/authorized_keys.secret");
|
openssh.authorizedKeys.keys = pkgs.lib.splitString "\n" (builtins.readFile "/nix/data/nixos/secret/authorized_keys.secret");
|
||||||
};
|
};
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue