summaryrefslogtreecommitdiffstats
path: root/nin/2configs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-21 18:41:43 +0100
committerlassulus <lass@lassul.us>2017-01-21 18:41:43 +0100
commitc7f0bc280077a4a324700009f6dfbdc6a59cc29a (patch)
tree504b7ae67d696adec66ce8a3eb1566832d0af691 /nin/2configs
parenta08ac6fc1770f1043446a81b2a6ce574dbd35899 (diff)
parent531807ece890f1d857304a86837ae4bc1f27076e (diff)
Merge remote-tracking branch 'prism/newest'
Diffstat (limited to 'nin/2configs')
-rw-r--r--nin/2configs/weechat.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nin/2configs/weechat.nix b/nin/2configs/weechat.nix
new file mode 100644
index 000000000..6c0fb313e
--- /dev/null
+++ b/nin/2configs/weechat.nix
@@ -0,0 +1,21 @@
+{ config, lib, pkgs, ... }:
+
+let
+ inherit (import <stockholm/lib>) genid;
+in {
+ krebs.per-user.chat.packages = with pkgs; [
+ mosh
+ weechat
+ tmux
+ ];
+
+ users.extraUsers.chat = {
+ home = "/home/chat";
+ uid = genid "chat";
+ useDefaultShell = true;
+ createHome = true;
+ openssh.authorizedKeys.keys = [
+ config.krebs.users.nin.pubkey
+ ];
+ };
+}