summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-12-28 22:33:36 +0100
committertv <tv@krebsco.de>2021-12-28 22:33:36 +0100
commite9cd6d91dc2c84c63f8564bbb048bc3c91ca6885 (patch)
treecd3b5674858e82bf85892d649b3da027ceb5ea18 /krebs/3modules
parent2a47990f16935d909930c9dd1ed6f8f2982df638 (diff)
ergo: always merge default config
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/ergo.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/krebs/3modules/ergo.nix b/krebs/3modules/ergo.nix
index df9757db0..74e621fcb 100644
--- a/krebs/3modules/ergo.nix
+++ b/krebs/3modules/ergo.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, ... }:
+{ config, lib, options, pkgs, ... }:
let
inherit (lib) mkEnableOption mkIf mkOption types;
@@ -84,6 +84,9 @@ in
config = mkIf cfg.enable ({
+ krebs.ergo.config =
+ lib.mapAttrsRecursive (_: lib.mkDefault) options.krebs.ergo.config.default;
+
systemd.services.ergo = {
description = "Ergo IRC daemon";
wantedBy = [ "multi-user.target" ];