diff options
author | Profpatsch <mail@profpatsch.de> | 2021-03-05 22:34:59 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-03-05 22:56:29 +0100 |
commit | 0ca7c3425f37ebb483567993a0f02159b8826dd0 (patch) | |
tree | 41f99ace227bb1a0218cf594c0c31b995b89a42c /machines/profpatsch | |
parent | 143ed53f90b67f72e830fea5fa15ceb5d33a1ca6 (diff) |
services/profpatsch/weechat: start factoring out some options
The goal is to be able to have multiple weechat services on one machine, so a bunch of people can run their weechat clients under different service users.
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/legosi.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/machines/profpatsch/legosi.nix b/machines/profpatsch/legosi.nix index fed8bce8..2d7c78f8 100644 --- a/machines/profpatsch/legosi.nix +++ b/machines/profpatsch/legosi.nix @@ -122,6 +122,10 @@ in { vuizvui.user.profpatsch.programs.weechat = { enable = true; + userName = "weechat"; + # give this user access to the bitlbee group and socket + extraGroups = [ "bitlbee" ]; + weechatDataDir = "/var/lib/weechat"; authorizedKeys = [ myKey ]; # redirect the bitlbee unix socket to a fake domain # because weechat is unable to connect to unix sockets. @@ -131,7 +135,6 @@ in { "addr=1.2.3.4,port=6667,path=${config.vuizvui.user.profpatsch.services.bitlbee.socketFile}" ]; }; - users.users.weechat.extraGroups = [ "bitlbee" ]; vuizvui.user.profpatsch.services.bitlbee = { enable = true; |