From ae79a451c20c8060eaa54510e9f8313e3cae2d24 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 21 Feb 2016 14:31:12 +0100 Subject: l 2 weechat: get genid from krebs.lib --- lass/2configs/weechat.nix | 12 +++++++----- 1 file 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 = [ -- cgit v1.2.3