summaryrefslogtreecommitdiffstats
path: root/nin/2configs/weechat.nix
diff options
context:
space:
mode:
authornin <nineinchnade@gmail.com>2017-01-20 00:05:30 +0100
committernin <nineinchnade@gmail.com>2017-01-20 00:06:45 +0100
commit3991331352d85d44d174a90392c0fe3d5e5dee05 (patch)
tree1f859d99a6499c3c5d36f7b0e4c97dba26169bd6 /nin/2configs/weechat.nix
parentf017017d58da0da3a745aabee23d05f2278e204d (diff)
n 2: add weechat
Diffstat (limited to 'nin/2configs/weechat.nix')
-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
+ ];
+ };
+}