mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Add host IDs to version control, set ssh config for all systems and create backup user for disk
This commit is contained in:
parent
cdc8875e3b
commit
d8957e7d47
5 changed files with 10 additions and 3 deletions
BIN
hosts/cube/id.age
Normal file
BIN
hosts/cube/id.age
Normal file
Binary file not shown.
|
@ -16,6 +16,12 @@
|
||||||
openssh.authorizedKeys.keys = [ keys.enka ];
|
openssh.authorizedKeys.keys = [ keys.enka ];
|
||||||
hashedPasswordFile = config.secrets.floppyPassword.path;
|
hashedPasswordFile = config.secrets.floppyPassword.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
backup = normalUser {
|
||||||
|
description = "Backup";
|
||||||
|
openssh.authorizedKeys.keys = [ keys.cube keys.enka ];
|
||||||
|
hashedPasswordFile = config.secrets.floppyPassword.path;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
BIN
hosts/disk/id.age
Normal file
BIN
hosts/disk/id.age
Normal file
Binary file not shown.
|
@ -4,7 +4,7 @@
|
||||||
mosh
|
mosh
|
||||||
]))
|
]))
|
||||||
|
|
||||||
(desktopHomeConfiguration {
|
(homeConfiguration {
|
||||||
programs.ssh = enabled {
|
programs.ssh = enabled {
|
||||||
controlMaster = "auto";
|
controlMaster = "auto";
|
||||||
controlPersist = "60m";
|
controlPersist = "60m";
|
||||||
|
|
|
@ -2,7 +2,8 @@ let
|
||||||
keys = import ./keys.nix;
|
keys = import ./keys.nix;
|
||||||
in with keys; {
|
in with keys; {
|
||||||
### cube
|
### cube
|
||||||
"hosts/cube/password.rgb.age".publicKeys = [ cube enka ];
|
"hosts/cube/id.age".publicKeys = [ cube enka ];
|
||||||
|
"hosts/cube/password.rgb.age".publicKeys = [ cube enka ];
|
||||||
|
|
||||||
"hosts/cube/password.plain.mail.age".publicKeys = [ cube enka ];
|
"hosts/cube/password.plain.mail.age".publicKeys = [ cube enka ];
|
||||||
"hosts/cube/password.hash.mail.age".publicKeys = [ cube enka ];
|
"hosts/cube/password.hash.mail.age".publicKeys = [ cube enka ];
|
||||||
|
@ -17,7 +18,7 @@ in with keys; {
|
||||||
"hosts/cube/nextcloud/password.age".publicKeys = [ cube enka ];
|
"hosts/cube/nextcloud/password.age".publicKeys = [ cube enka ];
|
||||||
|
|
||||||
### disk
|
### disk
|
||||||
|
"hosts/disk/id.age".publicKeys = [ cube enka ];
|
||||||
"hosts/disk/password.floppy.age".publicKeys = [ disk enka ];
|
"hosts/disk/password.floppy.age".publicKeys = [ disk enka ];
|
||||||
|
|
||||||
### enka
|
### enka
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue