Personal NixOS flake

feat(hyprpanel): add battery to laptop panel

+68 -22
+22
desktop.nix
··· 93 93 94 94 monitor = [ "DP-2, 1920x1080@144, 0x0, 1" "DP-3, 1920x1080@144, auto, 1, transform, 3"]; 95 95 }; 96 + home-manager.users.emily = { 97 + programs = { 98 + hyprpanel = { 99 + settings = { 100 + layout = { 101 + "bar.layouts" = { 102 + "0" = { 103 + left = [ "dashboard" "workspaces" ]; 104 + middle = [ "windowtitle" ]; 105 + right = [ "systray" "network" "weather" "volume" "clock" "notifications"]; 106 + }; 107 + "1" = { 108 + left = ["workspaces"]; 109 + middle = ["windowtitle"]; 110 + right = []; 111 + }; 112 + }; 113 + }; 114 + }; 115 + }; 116 + }; 117 + }; 96 118 }
+14 -14
home/emily/gui/hyprland/hyprpanel.nix
··· 48 48 osd.radius = "0.0em"; 49 49 }; 50 50 51 - layout = { 52 - "bar.layouts" = { 53 - "0" = { 54 - left = [ "dashboard" "workspaces" ]; 55 - middle = [ "windowtitle" ]; 56 - right = [ "systray" "network" "weather" "volume" "clock" "notifications"]; 57 - }; 58 - "1" = { 59 - left = ["workspaces"]; 60 - middle = ["windowtitle"]; 61 - right = []; 62 - }; 63 - }; 64 - }; 51 + # layout = { 52 + # "bar.layouts" = { 53 + # "0" = { 54 + # left = [ "dashboard" "workspaces" ]; 55 + # middle = [ "windowtitle" ]; 56 + # right = [ "systray" "network" "weather" "volume" "clock" "notifications"]; 57 + # }; 58 + # "1" = { 59 + # left = ["workspaces"]; 60 + # middle = ["windowtitle"]; 61 + # right = []; 62 + # }; 63 + # }; 64 + # }; 65 65 }; 66 66 }; 67 67 }
+32 -8
laptop.nix
··· 29 29 }; 30 30 }; 31 31 32 - home-manager.users.emily.wayland.windowManager.hyprland.settings = { 33 - monitor = [ ",highres@highrr,auto,1"]; 34 - # xwayland = { 35 - # force_zero_scaling = true; 36 - # }; 37 - # env = [ 38 - # "GDK_SCALE,2" 39 - # ]; 32 + home-manager.users.emily.wayland.windowManager = { 33 + hyprland = { 34 + settings = { 35 + monitor = [ ",highres@highrr,auto,1"]; 36 + # env = [ 37 + # "AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1" 38 + # ]; 39 + # xwayland = { 40 + # force_zero_scaling = true; 41 + # }; 42 + # env = [ 43 + # "GDK_SCALE,2" 44 + # ]; 45 + }; 46 + }; 47 + }; 48 + home-manager.users.emily = { 49 + programs = { 50 + hyprpanel = { 51 + settings = { 52 + layout = { 53 + "bar.layouts" = { 54 + "0" = { 55 + left = [ "dashboard" "workspaces" ]; 56 + middle = [ "windowtitle" ]; 57 + right = [ "systray" "network" "weather" "volume" "battery" "clock" "notifications"]; 58 + }; 59 + }; 60 + }; 61 + }; 62 + }; 63 + }; 40 64 }; 41 65 }