1
Fork 0
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:
RGBCube 2024-04-24 10:59:01 +03:00
parent cdc8875e3b
commit d8957e7d47
No known key found for this signature in database
5 changed files with 10 additions and 3 deletions

BIN
hosts/cube/id.age Normal file

Binary file not shown.

View file

@ -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

Binary file not shown.

View file

@ -4,7 +4,7 @@
mosh
]))
(desktopHomeConfiguration {
(homeConfiguration {
programs.ssh = enabled {
controlMaster = "auto";
controlPersist = "60m";

View file

@ -2,7 +2,8 @@ let
keys = import ./keys.nix;
in with keys; {
### 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.hash.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