summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/share/default.nix
blob: a1ad349b903ebfc0e0565981df9ed58a3a83676a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, lib, ... }:
with import <stockholm/lib>;
let
  base-dir = config.services.rtorrent.downloadDir;
in {
  users.users = {
    download = {
      name = "download";
      home = base-dir;
      isNormalUser = true;
      uid = mkDefault (genid "download");
      createHome = false;
      useDefaultShell = true;
      group = "download";
      openssh.authorizedKeys.keys = [ ];
    };
  };

  users.groups = {
    download = {
      gid = lib.mkDefault (genid "download");
      members = [
        config.krebs.build.user.name
        "download"
      ];
    };
  };

}