From e9cd6d91dc2c84c63f8564bbb048bc3c91ca6885 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 28 Dec 2021 22:33:36 +0100 Subject: [PATCH] ergo: always merge default config --- krebs/3modules/ergo.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" ];