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 ];
|
||||
hashedPasswordFile = config.secrets.floppyPassword.path;
|
||||
};
|
||||
|
||||
backup = normalUser {
|
||||
description = "Backup";
|
||||
openssh.authorizedKeys.keys = [ keys.cube keys.enka ];
|
||||
hashedPasswordFile = config.secrets.floppyPassword.path;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
|
|
BIN
hosts/disk/id.age
Normal file
BIN
hosts/disk/id.age
Normal file
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
mosh
|
||||
]))
|
||||
|
||||
(desktopHomeConfiguration {
|
||||
(homeConfiguration {
|
||||
programs.ssh = enabled {
|
||||
controlMaster = "auto";
|
||||
controlPersist = "60m";
|
||||
|
|
|
@ -2,6 +2,7 @@ let
|
|||
keys = import ./keys.nix;
|
||||
in with keys; {
|
||||
### cube
|
||||
"hosts/cube/id.age".publicKeys = [ cube enka ];
|
||||
"hosts/cube/password.rgb.age".publicKeys = [ cube enka ];
|
||||
|
||||
"hosts/cube/password.plain.mail.age".publicKeys = [ cube enka ];
|
||||
|
@ -17,7 +18,7 @@ in with keys; {
|
|||
"hosts/cube/nextcloud/password.age".publicKeys = [ cube enka ];
|
||||
|
||||
### disk
|
||||
|
||||
"hosts/disk/id.age".publicKeys = [ cube enka ];
|
||||
"hosts/disk/password.floppy.age".publicKeys = [ disk enka ];
|
||||
|
||||
### enka
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue