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