1

Modules/Hyprpanel: Add hyprpanel module

This commit is contained in:
2025-06-17 01:24:32 +02:00
parent 46dfc42c1e
commit f3259dfc6f
4 changed files with 32 additions and 0 deletions

View File

@ -23,6 +23,8 @@
# Ags for widgets (this was a terrible idea)
ags.url = "github:Aylur/ags";
hyprpanel.url = "github:jas-singhfsu/hyprpanel";
hyprpanel.inputs.nixpkgs.follows = "nixpkgs";
# Other
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";

View File

@ -22,5 +22,6 @@
inputs.nix-flatpak.homeManagerModules.nix-flatpak
inputs.nixvim.homeManagerModules.nixvim
inputs.ags.homeManagerModules.default
inputs.hyprpanel.homeManagerModules.hyprpanel
];
}

View File

@ -0,0 +1,20 @@
{
config,
nixosConfig,
lib,
mylib,
pkgs,
...
}: let
inherit (config.modules) hyprpanel;
in {
options.modules.hyprpanel = import ./options.nix {inherit lib mylib;};
config = lib.mkIf hyprpanel.enable {
programs.hyprpanel = {
enable = true;
overwrite.enable = true;
};
};
}

View File

@ -0,0 +1,9 @@
{
lib,
mylib,
...
}:
with lib;
with mylib.modules; {
enable = mkEnableOption "hyprpanel";
}