about summary refs log tree commit diff stats
path: root/nix/modules
diff options
context:
space:
mode:
authorAlan Pearce2024-05-25 02:20:24 +0200
committerAlan Pearce2024-05-25 02:20:24 +0200
commit4c4b980bff860dda725253438b499245338161df (patch)
tree3911cc0a642818c91a24e0fa1fce78315fc2435d /nix/modules
parente9eed3ddc4229db707cccb30beddde15044eff16 (diff)
downloadsearchix-4c4b980bff860dda725253438b499245338161df.tar.lz
searchix-4c4b980bff860dda725253438b499245338161df.tar.zst
searchix-4c4b980bff860dda725253438b499245338161df.zip
build: enable non-flake import
Diffstat (limited to 'nix/modules')
-rw-r--r--nix/modules/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nix/modules/default.nix b/nix/modules/default.nix
index acfa7aa..690116b 100644
--- a/nix/modules/default.nix
+++ b/nix/modules/default.nix
@@ -1,4 +1,3 @@
-flake:
 { config
 , lib
 , pkgs
@@ -9,7 +8,7 @@ let
   inherit (builtins) fromTOML readFile;
   cfg = config.services.searchix;
 
-  package = flake.packages.${pkgs.system}.default;
+  package = pkgs.callPackage ../.. { };
 
   defaults = fromTOML (readFile ../../defaults.toml);
 
@@ -91,6 +90,7 @@ in
           };
 
           web = mkOption {
+            default = { };
             type = types.submodule {
               freeformType = settingsFormat.type;
               options = {
@@ -113,7 +113,7 @@ in
                   mkOption {
                     type = types.str;
                     description = "The base URL that searchix will be served on.";
-                    default = "http://${web.listenAddress}:${web.port}";
+                    default = "http://${web.listenAddress}:${toString web.port}";
                   };
 
                 environment = mkOption {
@@ -146,6 +146,7 @@ in
           };
 
           importer = mkOption {
+            default = { };
             type = types.submodule {
               freeformType = settingsFormat.type;
 
@@ -179,7 +180,6 @@ in
           };
         };
       };
-      default = { };
       description = ''
         Configuration for searchix.