diff options
author | lassulus <lassulus@lassul.us> | 2018-04-27 16:55:43 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-04-27 16:55:43 +0200 |
commit | 72abe80227ec5de5c2f7a55f6e2fe3da46c14538 (patch) | |
tree | efc5cc9b82055a477cde3cc378e22564bf31168c /lass/2configs | |
parent | eca81992947815db2700a831aa1ec38a0e70216b (diff) |
l: config for backup target
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/backup.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lass/2configs/backup.nix b/lass/2configs/backup.nix new file mode 100644 index 000000000..27adf6d2a --- /dev/null +++ b/lass/2configs/backup.nix @@ -0,0 +1,20 @@ +{ config, lib, ... }: +with import <stockholm/lib>; + +{ + fileSystems = { + "/backups" = { + device = "/dev/pool/backup"; + fsType = "ext4"; + }; + }; + users.users.backup = { + useDefaultShell = true; + home = "/backups"; + createHome = true; + openssh.authorizedKeys.keys = with config.krebs.hosts; [ + mors.ssh.pubkey + prism.ssh.pubkey + ]; + }; +} |