summaryrefslogtreecommitdiffstats
path: root/nin/2configs/weechat.nix
blob: 6c0fb313ed50aff1040e8c279c296482ef2b478a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
    ];
  };
}