From 3ebb0134392cca059416c6dab0fcf9eeea4344cf Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 23 Apr 2023 15:15:51 -0700 Subject: hosts/tahoe: create a new user specifically for backups This is the user I'll be using to do my backups. This is a system user, and there's only one public key added to it. This key is only used for backups and will be managed in this repository. --- hosts/tahoe/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hosts/tahoe/default.nix') diff --git a/hosts/tahoe/default.nix b/hosts/tahoe/default.nix index 64377b8..b605ba9 100644 --- a/hosts/tahoe/default.nix +++ b/hosts/tahoe/default.nix @@ -10,6 +10,17 @@ isSystemUser = true; }; + # Backup user + users.users.fcunybackup = { + createHome = false; + group = "users"; + home = "/data/slow/backups/users/fcuny"; + isSystemUser = true; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB/0b3IjqeCHQ+b4qZoptrmG/twV4Zj4BIH1yl7Y5cW9" + ]; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave -- cgit 1.4.1