From c93922931a0d758b37ce33b6479e040faeaf88d0 Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Sat, 28 Jun 2025 22:33:23 +0200 Subject: [PATCH 1/3] bluetooth --- home-manager/waybar.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home-manager/waybar.nix b/home-manager/waybar.nix index 8ece731..7d2be0d 100644 --- a/home-manager/waybar.nix +++ b/home-manager/waybar.nix @@ -17,6 +17,7 @@ "clock" ]; modules-right = [ + "bluetooth" "privacy" "pulseaudio" "cpu" @@ -75,6 +76,12 @@ }; }; + bluetooth = { + format = " {status}"; + format-disabled = ""; # an empty format will hide the module + format-connected = " {num_connections} connected"; + on-click = lib.getExe pkgs.overskride; + }; pulseaudio = { # "scroll-step": 1, // %, can be a float "format" = "{volume}% {icon} {format_source}"; From 77e8e412b569c305451952f52f76535f732b6569 Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Sun, 29 Jun 2025 18:44:04 +0200 Subject: [PATCH 2/3] power off --- home-manager/config.kdl | 4 +--- home-manager/desktop.nix | 7 +++++++ nixos/configuration.nix | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/home-manager/config.kdl b/home-manager/config.kdl index 042e886..1dd2ee5 100644 --- a/home-manager/config.kdl +++ b/home-manager/config.kdl @@ -250,8 +250,6 @@ spawn-at-startup "xwayland-satellite" environment { DISPLAY ":0" ELECTRON_OZONE_PLATFORM_HINT "auto" - // see keyring below - // SSH_AUTH_SOCK "/run/user/1000/keyring/ssh" } // Uncomment this line to ask the clients to omit their client-side decorations if possible. @@ -340,7 +338,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+T { spawn "alacritty"; } Mod+D { spawn "fuzzel"; } - Super+Alt+L { spawn "swaylock"; } + Super+Alt+L { spawn "lock-and-power-off-screen"; } // You can also use a shell. Do this if you need pipes, multiple commands, etc. // Note: the entire command goes as a single argument in the end. diff --git a/home-manager/desktop.nix b/home-manager/desktop.nix index c5fe591..76070f4 100644 --- a/home-manager/desktop.nix +++ b/home-manager/desktop.nix @@ -52,6 +52,13 @@ in spotify # rustup from nix for rust :) rustup + (pkgs.writeShellApplication { + name = "lock-and-power-off-screen"; + text = '' + niri msg action power-off-monitors + exec swaylock + ''; + }) ] ++ import ./common-packages.nix { inherit pkgs inputs; }; # Nicely reload system units when changing configs diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7441dfe..f5b06d2 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -266,7 +266,7 @@ in Unit = "regenerate-bsod-lockscreen.service"; OnBootSec = "10s"; OnUnitActiveSec = "60s"; - AccuracySec = "1s"; + AccuracySec = "5s"; }; }; }; From eff1afb09a9c98d982f1534a8689f0d1d52e8aef Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Sun, 29 Jun 2025 18:50:06 +0200 Subject: [PATCH 3/3] d --- nixos/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index f5b06d2..f168a75 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -222,6 +222,8 @@ in fonts.packages = with pkgs; [ fira-code customPkgs.monaspace ]; + services.nixseparatedebuginfod.enable = true; + services.tailscale = { enable = true; useRoutingFeatures = "both";