aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flake.nix3
-rw-r--r--nix/module.nix4
2 files changed, 5 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index db95c0cd..0965e1d0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -26,11 +26,14 @@
];
};
};
+
+ module = import ./nix/module.nix {extraPackages = {inherit turtle;};};
in {
packages."${system}" = {
inherit turtle;
default = self.outputs.packages.${system}.turtle;
};
+ nixosModules.default = module;
checks."${system}".default = tests;
diff --git a/nix/module.nix b/nix/module.nix
index da6fd02c..60878e7e 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -1,4 +1,4 @@
-{
+{extraPackages}: {
config,
pkgs,
lib,
@@ -11,7 +11,7 @@ in {
services.turtle = {
enable = lib.mkEnableOption "turtle server for shell history sync";
- package = lib.mkPackageOption pkgs "turtle" {};
+ package = lib.mkPackageOption extraPackages "turtle" {};
host = mkOption {
type = types.str;