From 9d78c83fa3287dc34204cda2ef0660742b650039 Mon Sep 17 00:00:00 2001 From: EdenQwQ Date: Tue, 25 Mar 2025 23:30:39 +0800 Subject: [PATCH] fix: hm-module use self package --- flake.nix | 2 +- nix/hm-modules.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index e0abf5cc..6ff5fe0e 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ ]; flake = { - hmModules.maomaowm = import ./nix/hm-modules.nix; + hmModules.maomaowm = import ./nix/hm-modules.nix { inherit self; }; nixosModules.maomaowm = import ./nix/nixos-modules.nix { inherit inputs self; }; }; diff --git a/nix/hm-modules.nix b/nix/hm-modules.nix index 1793b14e..65898d9e 100644 --- a/nix/hm-modules.nix +++ b/nix/hm-modules.nix @@ -1,3 +1,4 @@ +{ self }: { lib, config, @@ -5,7 +6,7 @@ ... }: let - maomaowm = pkgs.callPackage ./. { }; + inherit (self.packages.${pkgs.system}) maomaowm; cfg = config.wayland.windowManager.maomaowm; variables = lib.concatStringsSep " " cfg.systemd.variables; extraCommands = lib.concatStringsSep " && " cfg.systemd.extraCommands;