summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-22 17:37:08 +0300
committerKyren223 <Kyren223@proton.me>2025-07-22 17:37:08 +0300
commit4a3adc88c27260cf941dee1f243badd84b7abd7b (patch)
tree2b601b954f8f75a3717dfff9cdf2dc96b0355a7e
parente6cfdac5a83d8d2e2664e3b313900b7b1a145114 (diff)
Fixed several issues with the nix flake
-rw-r--r--flake.nix13
-rw-r--r--service.nix6
2 files changed, 12 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 988a4fd..527f307 100644
--- a/flake.nix
+++ b/flake.nix
@@ -110,11 +110,6 @@
default = eko;
};
- nixosModules = rec {
- default = eko;
- eko = import ./service.nix inputs;
- };
-
# TODO: make my own devshell?
# devShells = rec {
# default = pkgs.mkShell {
@@ -169,5 +164,11 @@
# };
# };
}
- );
+ )
+ // {
+ nixosModules = rec {
+ default = eko;
+ eko = import ./service.nix inputs;
+ };
+ };
}
diff --git a/service.nix b/service.nix
index 9e9e437..4cc39b3 100644
--- a/service.nix
+++ b/service.nix
@@ -14,7 +14,11 @@ in
options.services.eko = {
enable = lib.mkEnableOption "eko service";
- package = lib.mkPackageOption inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.eko-server { };
+ package = lib.mkOption {
+ description = "Eko package to use as the server executable";
+ default = inputs.self.packages.${pkgs.system}.eko-server;
+ type = lib.types.package;
+ };
dataDir = lib.mkOption {
description = "Eko data directory";