update hm module
This commit is contained in:
@@ -14,18 +14,29 @@
|
|||||||
|
|
||||||
example = "aurora.packages.hybar";
|
example = "aurora.packages.hybar";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = mkEnableOption "aurora systemd unit";
|
||||||
|
|
||||||
|
target = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "hyprland-session.target";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.programs.aurora.enable {
|
config = {
|
||||||
|
|
||||||
programs.quickshell = {
|
programs.quickshell = let
|
||||||
enable = true;
|
cfg = config.programs.aurora;
|
||||||
|
in {
|
||||||
|
enable = cfg.enable;
|
||||||
|
|
||||||
package = config.programs.aurora.package;
|
package = cfg.package;
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true;
|
enable = cfg.systemd.enable;
|
||||||
target = "wayland-session@Hyprland.target";
|
target = cfg.systemd.target;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user