waybar integration

This commit is contained in:
Odweta
2026-01-11 18:52:00 +01:00
parent 89cbe49dd7
commit ff968d4a87
5 changed files with 33 additions and 5 deletions
-1
View File
@@ -67,6 +67,5 @@
services.openssh.enable = true; services.openssh.enable = true;
system.stateVersion = "25.11"; system.stateVersion = "25.11";
} }
+1
View File
@@ -12,6 +12,7 @@
./hyprland.nix ./hyprland.nix
./kitty.nix ./kitty.nix
./vim.nix ./vim.nix
./waybar.nix
./xdg.nix ./xdg.nix
]; ];
} }
+1 -3
View File
@@ -2,9 +2,7 @@
{ {
# program enable # program enable
programs.hyprland = { programs.hyprland.enable = true;
enable = true;
};
# xdg portal for hyprland # xdg portal for hyprland
xdg.portal = { xdg.portal = {
+4 -1
View File
@@ -7,7 +7,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
hypridle hypridle
hyprlock hyprlock
waybar
wofi wofi
]; ];
@@ -23,6 +22,10 @@
enable = true; enable = true;
settings = { settings = {
exec-once = [
"waybar"
];
monitor = [ monitor = [
"HDMI-A-2, 1920x1080@60, 0x0, 1" "HDMI-A-2, 1920x1080@60, 0x0, 1"
"eDP-1, 1920x1080@60, 0x1080, 1" "eDP-1, 1920x1080@60, 0x1080, 1"
+27
View File
@@ -0,0 +1,27 @@
{ pkgs, ... }:
{
programs.waybar = {
enable = true;
settings = [{
layer = "top";
position = "top";
modules-left = [ "hyprland/workspaces" ];
modules-center = [ "clock" ];
modules-right = [ "pulseaudio" "battery" "tray" ];
clock = {
format = "{:%Y-%m-%d %H:%M}";
};
}];
style = ''
* {
font-family: Hurmit Nerd Font Mono;
font-size: 16px;
}
'';
};
}