Skip to content

Commit 4dd365c

Browse files
committed
feat: hyprpanel
1 parent 0f7acd8 commit 4dd365c

File tree

5 files changed

+221
-2
lines changed

5 files changed

+221
-2
lines changed

flake.lock

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@
7676
flake = false;
7777
};
7878

79+
hyprpanel = {
80+
url = "github:jas-singhfsu/hyprpanel";
81+
inputs.nixpkgs.follows = "nixpkgs";
82+
};
83+
7984
firefox-gnome-theme = {
8085
url = "github:rafaelmardojai/firefox-gnome-theme";
8186
flake = false;
@@ -225,7 +230,13 @@
225230
homeConfigurations = {
226231
# Desktop home
227232
"denrei@altair" = lib.homeManagerConfiguration {
228-
pkgs = pkgsFor.x86_64-linux;
233+
# pkgs = pkgsFor.x86_64-linux;
234+
pkgs = import nixpkgs {
235+
inherit pkgsFor;
236+
overlays = [
237+
inputs.hyprpanel.overlay
238+
];
239+
};
229240
extraSpecialArgs = specialArgs;
230241
modules = [
231242
./home/denrei/altair.nix

home/denrei/altair.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
common/optional/desktops
1818
common/optional/browsers
1919
common/optional/media
20+
21+
# common/optional/hyprpanel
2022
];
2123

2224
home = {
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# *.nix
2+
{ inputs, lib, ... }:
3+
let
4+
inherit (lib)
5+
types
6+
mkIf
7+
mkOption
8+
mkEnableOption
9+
;
10+
# Shorthand lambda for self-documenting options under settings
11+
mkStrOption =
12+
default:
13+
mkOption {
14+
type = types.str;
15+
default = default;
16+
};
17+
mkIntOption =
18+
default:
19+
mkOption {
20+
type = types.int;
21+
default = default;
22+
};
23+
mkBoolOption =
24+
default:
25+
mkOption {
26+
type = types.bool;
27+
default = default;
28+
};
29+
mkStrListOption =
30+
default:
31+
mkOption {
32+
type = types.listOf types.str;
33+
default = default;
34+
};
35+
mkFloatOption =
36+
default:
37+
mkOption {
38+
type = types.float;
39+
default = default;
40+
};
41+
in
42+
{
43+
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
44+
45+
programs.hyprpanel = {
46+
overlay.enable = true;
47+
48+
# Enable the module.
49+
# Default: false
50+
enable = true;
51+
52+
# Automatically restart HyprPanel with systemd.
53+
# Useful when updating your config so that you
54+
# don't need to manually restart it.
55+
# Default: false
56+
systemd.enable = true;
57+
58+
# Add '/nix/store/.../hyprpanel' to your
59+
# Hyprland config 'exec-once'.
60+
# Default: false
61+
hyprland.enable = true;
62+
63+
# Fix the overwrite issue with HyprPanel.
64+
# See below for more information.
65+
# Default: false
66+
overwrite.enable = true;
67+
68+
# Import a theme from './themes/*.json'.
69+
# Default: ""
70+
# theme = "gruvbox_split";
71+
72+
# Override the final config with an arbitrary set.
73+
# Useful for overriding colors in your selected theme.
74+
# Default: {}
75+
# override = {
76+
# theme.bar.menus.text = "#123ABC";
77+
# };
78+
79+
# Configure bar layouts for monitors.
80+
# See 'https://hyprpanel.com/configuration/panel.html'.
81+
# Default: null
82+
layout = {
83+
"bar.layouts" = {
84+
"0" = {
85+
left = [
86+
"dashboard"
87+
"workspaces"
88+
"windowtitle"
89+
];
90+
middle = [ "media" ];
91+
right = [
92+
"volume"
93+
"network"
94+
"bluetooth"
95+
"battery"
96+
"systray"
97+
"clock"
98+
"notifications"
99+
];
100+
};
101+
};
102+
};
103+
104+
# Configure and theme almost all options from the GUI.
105+
# Options that require '{}' or '[]' are not yet implemented,
106+
# except for the layout above.
107+
# See 'https://hyprpanel.com/configuration/settings.html'.
108+
# Default: <same as gui>
109+
settings = {
110+
bar.launcher.autoDetectIcon = true;
111+
bar.workspaces.show_icons = true;
112+
bar.clock.format = "%a %b %d %I:%M:%S %p";
113+
bar.clock.icon = "󰸗";
114+
bar.clock.middleClick = "";
115+
bar.clock.rightClick = "";
116+
bar.clock.scrollDown = "";
117+
bar.clock.scrollUp = "";
118+
bar.clock.showIcon = true;
119+
bar.clock.showTime = true;
120+
121+
menus.clock = {
122+
time = {
123+
military = true;
124+
hideSeconds = true;
125+
};
126+
# weather.unit = "metric";
127+
};
128+
129+
menus.dashboard.directories.enabled = false;
130+
menus.dashboard.stats.enable_gpu = false;
131+
132+
theme.bar.transparent = true;
133+
134+
theme.font = {
135+
name = "Ubuntu Nerd Font Regular";
136+
size = "1.0rem";
137+
};
138+
};
139+
};
140+
}

hosts/common/core/printing.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ pkgs, ... }:
22
{
33
services.avahi = {
4-
nssmdns = true;
4+
# nssmdns = true;
55
enable = true;
66
nssmdns4 = true;
77
openFirewall = true;

0 commit comments

Comments
 (0)