fix: hm-module use self package

This commit is contained in:
EdenQwQ 2025-03-25 23:30:39 +08:00
parent d2d8e7b01b
commit 9d78c83fa3
2 changed files with 3 additions and 2 deletions

View file

@ -26,7 +26,7 @@
]; ];
flake = { 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; }; nixosModules.maomaowm = import ./nix/nixos-modules.nix { inherit inputs self; };
}; };

View file

@ -1,3 +1,4 @@
{ self }:
{ {
lib, lib,
config, config,
@ -5,7 +6,7 @@
... ...
}: }:
let let
maomaowm = pkgs.callPackage ./. { }; inherit (self.packages.${pkgs.system}) maomaowm;
cfg = config.wayland.windowManager.maomaowm; cfg = config.wayland.windowManager.maomaowm;
variables = lib.concatStringsSep " " cfg.systemd.variables; variables = lib.concatStringsSep " " cfg.systemd.variables;
extraCommands = lib.concatStringsSep " && " cfg.systemd.extraCommands; extraCommands = lib.concatStringsSep " && " cfg.systemd.extraCommands;