From f8bef518d2278a5793710394014910c4e2d189af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Sat, 2 May 2026 19:27:04 +0200 Subject: [PATCH] feat: update system --- hosts/MONSTER/default.nix | 9 ++++++++- modules/nixos/shell/firefox-pip.nix | 2 +- modules/nixos/shell/waybar.nix | 31 ++++++++++++++++++----------- modules/nixos/usecases/gaming.nix | 2 +- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/hosts/MONSTER/default.nix b/hosts/MONSTER/default.nix index 713d38b..fba8a2c 100644 --- a/hosts/MONSTER/default.nix +++ b/hosts/MONSTER/default.nix @@ -44,7 +44,10 @@ kitty.enable = true; swaync.enable = true; walker.enable = true; - waybar.enable = true; + waybar = { + enable = true; + home-assistant = true; + }; }; desktops.hyprland = { enable = true; @@ -178,6 +181,7 @@ fzf eza # docker + ausweisapp ]; networking = { @@ -189,6 +193,9 @@ allowedUDPPorts = [ 25565 50765 + + # AusweisApp + 24727 ]; /* allowedUDPPortRanges = [ diff --git a/modules/nixos/shell/firefox-pip.nix b/modules/nixos/shell/firefox-pip.nix index 502598c..d4cce22 100644 --- a/modules/nixos/shell/firefox-pip.nix +++ b/modules/nixos/shell/firefox-pip.nix @@ -27,7 +27,7 @@ in opaque = true; pin = true; fullscreen_state = "2 0"; - move = "8 8"; + move = "240 8"; keep_aspect_ratio = true; border_size = "0"; animation = "fade"; diff --git a/modules/nixos/shell/waybar.nix b/modules/nixos/shell/waybar.nix index 54bebf9..c0bf7c5 100644 --- a/modules/nixos/shell/waybar.nix +++ b/modules/nixos/shell/waybar.nix @@ -13,6 +13,7 @@ in options.shell.components.waybar = { enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured waybar setup"); mobile = lib.mkEnableOption (lib.mdDoc "Mobile PC"); + home-assistant = lib.mkEnableOption (lib.mdDoc "Home Assistant"); }; config = lib.mkIf cfg.enable { @@ -32,17 +33,23 @@ in reload_style_on_change = true; exclusive = true; - modules-left = [ - "custom/ha" - ] - ++ ( - if cfg.mobile then - [ - "battery" - ] - else - [ ] - ); + modules-left = + ( + if cfg.home-assistant then + [ + "custom/ha" + ] + else + [ ] + ) + ++ ( + if cfg.mobile then + [ + "battery" + ] + else + [ ] + ); modules-center = [ "clock" ]; @@ -140,7 +147,7 @@ in "tooltip-format" = "{capacity}%"; }; - "custom/ha" = { + "custom/ha" = lib.mkIf cfg.home-assistant { exec = pkgs.lib.getExe waybar-ha; return-type = "json"; interval = 30; diff --git a/modules/nixos/usecases/gaming.nix b/modules/nixos/usecases/gaming.nix index 61f69bf..b133aa0 100644 --- a/modules/nixos/usecases/gaming.nix +++ b/modules/nixos/usecases/gaming.nix @@ -37,7 +37,7 @@ in libvdpau ]; }) - # rpcs3 + rpcs3 bottles wineWow64Packages.stagingFull winetricks