summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/charybdis.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-04-23 09:43:59 +0200
committerlassulus <lassulus@lassul.us>2020-04-23 09:43:59 +0200
commitf11ec6f9b243688cb2aecded8e7c4445b7401e07 (patch)
tree45b940e99543f79a292464ac40b4e45f45a03cd8 /krebs/3modules/charybdis.nix
parentf441a3dbc712d72d0bc8e8988f1d5e366b61acbd (diff)
charybis: use not deprecated user/group syntax
Diffstat (limited to 'krebs/3modules/charybdis.nix')
-rw-r--r--krebs/3modules/charybdis.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/krebs/3modules/charybdis.nix b/krebs/3modules/charybdis.nix
index aa7c980c5..038d79dd0 100644
--- a/krebs/3modules/charybdis.nix
+++ b/krebs/3modules/charybdis.nix
@@ -71,14 +71,13 @@ in
config = mkIf cfg.enable (lib.mkMerge [
{
- users.users = singleton {
- name = cfg.user;
+ users.users.${cfg.user} = {
description = "Charybdis IRC daemon user";
uid = config.ids.uids.ircd;
group = cfg.group;
};
- users.groups = singleton {
+ users.groups.${cfg.group} = {
name = cfg.group;
gid = config.ids.gids.ircd;
};
@@ -102,7 +101,7 @@ in
};
}
-
+
(mkIf (cfg.motd != null) {
environment.etc."charybdis/ircd.motd".text = cfg.motd;
})