summaryrefslogtreecommitdiffstats
path: root/lass/2configs/backup.nix
blob: 27adf6d2af6692dbe7209868aeb67b8b54ec6c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
    ];
  };
}