mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
Add machines.keys config and reorganize key structure
- Add config.machines.keys for machine-specific keys (private keys live on that machine) - Move desktop SSH key to machines.keys.desktop.ssh - Fix extractName to preserve "yubikey" (only strip .key/.pub extensions) - Rename key files for clarity (android -> graphone, primary -> yubikey) - Add age yubikey key for encrypted backups - Add README files to document key purposes - Update all machine configs to import system config
This commit is contained in:
parent
570a321e53
commit
960904cbd9
24 changed files with 94 additions and 20 deletions
|
|
@ -12,13 +12,12 @@
|
|||
backup = {
|
||||
enable = true;
|
||||
recipients = [
|
||||
# TODO: Add your age recipients
|
||||
# "${config.user.keys.age.yubikey}"
|
||||
# "${config.user.keys.ssh.desktop}"
|
||||
"${config.user.keys.age.yubikey}"
|
||||
"${config.machines.keys.desktop.ssh}"
|
||||
];
|
||||
destination = "gdrive:backups/server"; # TODO: configure rclone remote
|
||||
schedule = "daily";
|
||||
keepLast = 7;
|
||||
keepLast = 2;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -27,7 +26,7 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = config.user.groups;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"${config.user.keys.ssh.desktop}"
|
||||
"${config.machines.keys.desktop.ssh}"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue