aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-26 01:11:40 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:55:53 +0100
commit178cce63384be3291d835d293f29267984fe5fd5 (patch)
tree784f4c6bbdbf01fdb5e97e3b425590da6c5eefa8 /modules/by-name
parentscripts/check_get_tests.nix: Select a nixpkgs input to work with (diff)
downloadnixos-server-178cce63384be3291d835d293f29267984fe5fd5.zip
modules/anubis: Enable once instances have been configured
Introducing the `enable` option meant that all modules that use it need to enable it before. This default neatly works around that.
Diffstat (limited to '')
-rw-r--r--modules/by-name/an/anubis/module.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/by-name/an/anubis/module.nix b/modules/by-name/an/anubis/module.nix
index 4140b28..7b584c4 100644
--- a/modules/by-name/an/anubis/module.nix
+++ b/modules/by-name/an/anubis/module.nix
@@ -30,7 +30,7 @@
cfg.instances;
in {
options.vhack.anubis = {
- enable = lib.mkEnableOption "anubis";
+ enable = lib.mkEnableOption "anubis" // {default = cfg.instances != {};};
instances = lib.mkOption {
description = ''