aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-23 15:15:51 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-23 15:15:51 -0700
commit3ebb0134392cca059416c6dab0fcf9eeea4344cf (patch)
treebe7021c847755b32cb67e9d89544ac0e1e3a92af /hosts
parentmodules/services: delete unused services (diff)
downloadinfra-3ebb0134392cca059416c6dab0fcf9eeea4344cf.tar.gz
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.
Diffstat (limited to 'hosts')
-rw-r--r--hosts/tahoe/default.nix11
1 files changed, 11 insertions, 0 deletions
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