diff options
author | makefu <github@syntax-fehler.de> | 2018-05-03 18:45:55 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-05-03 18:45:55 +0200 |
commit | 8156ab92378422d36d0af55c8d4b3b5742f4305c (patch) | |
tree | fcbcb08991681dcd24a88d7a9bac7f22840df575 /lass/2configs/backup.nix | |
parent | 45377068c0bfbb009b7cbe41dbca97dd44c9c955 (diff) | |
parent | 28d6704a0d617ca7d379b836ab9fdd4d6a0be868 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/backup.nix')
-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 + ]; + }; +} |