diff options
author | lassulus <lass@aidsballs.de> | 2016-02-21 14:31:12 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-02-21 14:31:12 +0100 |
commit | ae79a451c20c8060eaa54510e9f8313e3cae2d24 (patch) | |
tree | c47969d998502532d9f3e79acf5ebdb98e4f8443 /lass/2configs | |
parent | 2d912a9d6dec8b58411436a6e2e82c9fa152e907 (diff) |
l 2 weechat: get genid from krebs.lib
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/weechat.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lass/2configs/weechat.nix b/lass/2configs/weechat.nix index 6a257f0bb..6c234d1bc 100644 --- a/lass/2configs/weechat.nix +++ b/lass/2configs/weechat.nix @@ -1,14 +1,16 @@ { config, lib, pkgs, ... }: -{ - krebs.per-user.chat.packages = [ - pkgs.weechat - pkgs.tmux +let + inherit (config.krebs.lib) genid; +in { + krebs.per-user.chat.packages = with pkgs; [ + tmux + weechat ]; users.extraUsers.chat = { home = "/home/chat"; - uid = lib.genid "chat"; + uid = genid "chat"; useDefaultShell = true; createHome = true; openssh.authorizedKeys.keys = [ |