about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-03-11 20:07:16 +0100
committerAlan Pearce2025-03-11 20:07:16 +0100
commit333bd2fbd16fc12c36e1b1d5b5bffdf065585fa8 (patch)
tree8db9c783dbb3830dfb9859d0e9f9cb303993d850
parent8e40b727829856bf1544c95ffa3016aa96ef5bf8 (diff)
downloadsearchix-333bd2fbd16fc12c36e1b1d5b5bffdf065585fa8.tar.lz
searchix-333bd2fbd16fc12c36e1b1d5b5bffdf065585fa8.tar.zst
searchix-333bd2fbd16fc12c36e1b1d5b5bffdf065585fa8.zip
fix: sources disabled by default in NixOS module
Fixes: https://todo.sr.ht/~alanpearce/searchix/12
-rw-r--r--nix/modules/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/nix/modules/default.nix b/nix/modules/default.nix
index fdd2977..ee13960 100644
--- a/nix/modules/default.nix
+++ b/nix/modules/default.nix
@@ -154,7 +154,7 @@ in
           };
 
           importer = mkOption {
-            default = { };
+            default = defaults.Importer;
             type = types.submodule {
               freeformType = settingsFormat.type;
 
@@ -180,7 +180,10 @@ in
                     attrsOf (submodule (import ./source-options.nix {
                       inherit cfg settingsFormat;
                     }));
-                  default = defaults.Importer.Sources;
+                  default = {
+                    nixos.enable = true;
+                    nixpkgs.enable = true;
+                  };
                   description = "Declarative specification of options sources for searchix.";
                 };
               };