diff --git a/system/audio/default.nix b/system/audio/default.nix index 5656dd2e..920183dd 100644 --- a/system/audio/default.nix +++ b/system/audio/default.nix @@ -8,12 +8,12 @@ wireplumber = { enable = true; extraConfig = { - # workaround for high battery usage - "10-disable-camera" = { - "wireplumber.profiles" = { - main = { - "monitor.libcamera" = "disabled"; - }; + "10-bluez" = { + "monitor.bluez.properties" = { + "bluez5.enable-sbc-xq" = true; + "bluez5.enable-msbc" = true; + "bluez5.enable-hw-volume" = true; + "bluez5.codecs" = ["sbc" "sbc_xq" "aac" "ldac" "aptx" "aptx_hd"]; }; }; }; @@ -27,6 +27,7 @@ bluetooth = { enable = true; + powerOnBoot = true; package = pkgs.bluez5-experimental; }; }; diff --git a/system/disks/default.nix b/system/disks/default.nix index 83787e2b..8ff51985 100644 --- a/system/disks/default.nix +++ b/system/disks/default.nix @@ -7,7 +7,7 @@ staypls = { enable = true; - dirs = ["/etc/ssh" "/etc/NetworkManager" "/etc/nix" "/var/lib/fprint" "/var/lib/pipewire"]; + dirs = ["/etc/ssh" "/etc/NetworkManager" "/etc/nix" "/var/lib/fprint" "/var/lib/pipewire" "/var/lib/bluetooth"]; }; boot.initrd.luks.devices.luksroot = { diff --git a/system/disks/staypls.nix b/system/disks/staypls.nix deleted file mode 100644 index a028dd93..00000000 --- a/system/disks/staypls.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ ...}: let - # This is my little home brew impermanence :3 - # see, you don't need any external modules for that - inherit (builtins) map; - inherit (lib.strings) concatStrings concatStringsSep; - inherit (lib) mkMerge optionalAttrs forEach; - - persistpath = "/persist"; - - mkPersistentBindMounts = list: - mkMerge (map ( - path: { - "${path}" = { - device = concatStrings [persistpath path]; - fsType = "none"; - options = ["bind"]; - }; - } - ) - list); - mkPersistentSourcePaths = list: concatStringsSep "\n" (forEach list (path: "mkdir -p /persist${path}")); - - persist = ["/etc/ssh" "/etc/NetworkManager" "/etc/nix" "/var/lib/fprint" "/var/lib/pipewire"]; -in { - staypls = { - enable = - } - boot.initrd.postDeviceCommands = mkPersistentSourcePaths persist; - fileSystems = mkPersistentBindMounts persist; -} diff --git a/system/wayland/default.nix b/system/wayland/default.nix index 1543146f..d9062d6a 100644 --- a/system/wayland/default.nix +++ b/system/wayland/default.nix @@ -3,7 +3,10 @@ flake, ... }: { - hardware.graphics.enable = true; + hardware = { + graphics.enable = true; + brillo.enable = true; + }; environment.sessionVariables = { FREETYPE_PROPERTIES = "cff:no-stem-darkening=0 autofitter:no-stem-darkening=0"; diff --git a/user/wrapped/hypr/configs/Hyprland.nix b/user/wrapped/hypr/configs/Hyprland.nix index 50b1f114..9641c649 100644 --- a/user/wrapped/hypr/configs/Hyprland.nix +++ b/user/wrapped/hypr/configs/Hyprland.nix @@ -166,4 +166,16 @@ in { "${mod} SHIFT ALT, bracketright, movecurrentworkspacetomonitor, r" ] ++ workspaces; + + layerrule = [ + "blur, anyrun" + " ignorealpha 0.6, anyrun" + ]; + windowrulev2 = [ + "workspace 2, class:(firefox|librewolf|brave)" + "workspace 4 silent, class:(signal|vesktop)" + "suppressevent maximize, class:.*" + #"scrolltouchpad 0.1, class:^(zen|firefox|brave|chromium-browser|chrome-.*)$" + "nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0" + ]; } diff --git a/user/wrapped/nvim/default.nix b/user/wrapped/nvim/default.nix index a25a8c8c..3198da96 100644 --- a/user/wrapped/nvim/default.nix +++ b/user/wrapped/nvim/default.nix @@ -113,6 +113,8 @@ in clang-tools shellcheck cargo + cargo-tauri + trunk nixd stylua # required for my goofy ahh plugin :3