aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-27 01:35:27 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 01:35:27 +0100
commitfca5a69277f633e2759904c3046635ef541fc341 (patch)
treeece5197accceac7d72b5add34a1e3b5555f0bc2d
parentnix/module.hm.nix: Use correct cfg name (diff)
downloadatuin-fca5a69277f633e2759904c3046635ef541fc341.zip
nix/module{,.hm}.nix: Don't import the modulesHEADmain
Having them just as paths, means that the modules can be de-duplicated and as such multiple times imported. The downside is that we can no longer setup a nice default for the package.
Diffstat (limited to '')
-rw-r--r--flake.nix4
-rw-r--r--nix/module.hm.nix4
-rw-r--r--nix/module.nix4
3 files changed, 6 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index 3d91f683..c7a87dbd 100644
--- a/flake.nix
+++ b/flake.nix
@@ -39,8 +39,8 @@
};
};
- nixosModule = import ./nix/module.nix {extraPackages = {inherit turtle;};};
- hmModule = import ./nix/module.hm.nix {turtlePkg = turtle;};
+ nixosModule = ./nix/module.nix;
+ hmModule = ./nix/module.hm.nix;
in {
packages."${system}" = {
inherit turtle;
diff --git a/nix/module.hm.nix b/nix/module.hm.nix
index 929742f7..eb1be2b6 100644
--- a/nix/module.hm.nix
+++ b/nix/module.hm.nix
@@ -1,4 +1,4 @@
-{turtlePkg}: {
+{
config,
pkgs,
lib,
@@ -18,7 +18,7 @@ in {
options.programs.turtle = {
enable = lib.mkEnableOption "turtle";
- package = (lib.mkPackageOption pkgs "turtle" {}) // {default = turtlePkg;};
+ package = (lib.mkPackageOption pkgs "turtle" {}) // {default = null;};
syncFrequency = lib.mkOption {
type = lib.types.nullOr lib.types.str;
diff --git a/nix/module.nix b/nix/module.nix
index 30ff417b..cdf27fed 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 extraPackages "turtle" {};
+ package = (lib.mkPackageOption pkgs "turtle" {}) // {default = null;};
host = mkOption {
type = types.str;