diff options
author | lassulus <lassulus@lassul.us> | 2022-03-02 16:37:48 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-03-02 16:37:48 +0100 |
commit | 44a42bb268e163e3fa43fe6ea6c4b979da0f49e9 (patch) | |
tree | 0e9475b0a40464b8122ac19ddcc63fe0daab3cd4 /makefu/2configs/share/default.nix | |
parent | 6002189225e347418f07a99d6a85b033fa0edaf7 (diff) | |
parent | 81817007edda4601c95a8f95aa99ce15320e224a (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/share/default.nix')
-rw-r--r-- | makefu/2configs/share/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/makefu/2configs/share/default.nix b/makefu/2configs/share/default.nix new file mode 100644 index 000000000..a1ad349b9 --- /dev/null +++ b/makefu/2configs/share/default.nix @@ -0,0 +1,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" + ]; + }; + }; + +} |