stockholm/lass/2configs/weechat.nix

38 lines
714 B
Nix
Raw Normal View History

2015-10-03 19:22:07 +00:00
{ config, lib, pkgs, ... }:
{
2015-11-13 13:57:19 +00:00
krebs.per-user.chat.packages = [
2015-10-03 19:22:07 +00:00
pkgs.weechat
pkgs.tmux
];
users.extraUsers.chat = {
home = "/home/chat";
2015-12-26 04:55:13 +00:00
uid = lib.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
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
}