2015-10-03 19:22:07 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-02-21 13:31:12 +00:00
|
|
|
let
|
2016-10-20 18:54:38 +00:00
|
|
|
inherit (import <stockholm/lib>) genid;
|
2016-02-21 13:31:12 +00:00
|
|
|
in {
|
|
|
|
krebs.per-user.chat.packages = with pkgs; [
|
2016-02-21 13:31:43 +00:00
|
|
|
mosh
|
2016-02-21 13:31:12 +00:00
|
|
|
weechat
|
2015-10-03 19:22:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
users.extraUsers.chat = {
|
|
|
|
home = "/home/chat";
|
2016-02-21 13:31:12 +00:00
|
|
|
uid = genid "chat";
|
2015-10-03 19:22:07 +00:00
|
|
|
useDefaultShell = true;
|
|
|
|
createHome = true;
|
2015-11-13 13:57:19 +00:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
config.krebs.users.lass.pubkey
|
2016-05-21 11:51:57 +00:00
|
|
|
config.krebs.users.lass-shodan.pubkey
|
2016-12-22 22:22:42 +00:00
|
|
|
config.krebs.users.lass-icarus.pubkey
|
2015-10-03 19:22:07 +00:00
|
|
|
];
|
|
|
|
};
|
2015-11-13 13:57:19 +00:00
|
|
|
|
|
|
|
#systemd.services.chat = {
|
|
|
|
# description = "chat environment setup";
|
|
|
|
# after = [ "network.target" ];
|
|
|
|
# wantedBy = [ "multi-user.target" ];
|
|
|
|
|
|
|
|
# path = with pkgs; [
|
|
|
|
# weechat
|
|
|
|
# tmux
|
|
|
|
# ];
|
|
|
|
|
|
|
|
# restartIfChanged = true;
|
|
|
|
|
|
|
|
# serviceConfig = {
|
|
|
|
# User = "chat";
|
|
|
|
# Restart = "always";
|
|
|
|
# ExecStart = "${pkgs.tmux}/bin/tmux new -s IM weechat";
|
|
|
|
# };
|
|
|
|
#};
|
2015-10-03 19:22:07 +00:00
|
|
|
}
|