[shared] Replace Hyprpanel flake with HM module

This commit is contained in:
2025-07-10 22:03:04 +02:00
parent 055c399d31
commit cbcb8f1764
3 changed files with 54 additions and 182 deletions

View File

@ -1,6 +1,5 @@
{
pkgs,
inputs,
common,
theme,
lib,
@ -8,28 +7,10 @@
}:
{
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
wayland.windowManager.hyprland.settings.exec-once = [ "hyprpanel" ];
programs.hyprpanel = {
enable = true;
# Add hyprpanel to the Hyprland config 'exec-once'.
hyprland.enable = true;
# Fix the overwrite issue with HyprPanel.
overwrite.enable = true;
# Override the final config with an arbitrary set.
# Useful for overriding colors in your selected theme.
# TODO fixes theming bugs in recent versions, should be removed when fixed
override = {
theme = {
bar.transparent = true;
font = {
name = "${theme.nerdFont} NF";
size = "15px";
};
};
};
# Configure and theme almost all options from the GUI.
# Options that require '{}' or '[]' are not yet implemented,
# except for the layout above.
@ -56,24 +37,22 @@
};
# Configure bar layouts for monitors.
layout = {
"bar.layouts" = {
"*" = {
left = [
"dashboard"
"workspaces"
"windowtitle"
];
middle = [ "media" ];
right = [
"kbinput"
"volume"
"network"
"systray"
"clock"
"notifications"
];
};
bar.layouts = {
"*" = {
left = [
"dashboard"
"workspaces"
"windowtitle"
];
middle = [ "media" ];
right = [
"kbinput"
"volume"
"network"
"systray"
"clock"
"notifications"
];
};
};
@ -117,7 +96,7 @@
bar.transparent = true;
font = {
name = "${theme.nerdFont} NF";
size = "16px";
size = "15px";
};
};