summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-04-27 16:55:43 +0200
committerlassulus <lassulus@lassul.us>2018-04-27 16:55:43 +0200
commit72abe80227ec5de5c2f7a55f6e2fe3da46c14538 (patch)
treeefc5cc9b82055a477cde3cc378e22564bf31168c /lass/2configs
parenteca81992947815db2700a831aa1ec38a0e70216b (diff)
l: config for backup target
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/backup.nix20
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
+ ];
+ };
+}