diff --git a/modules/hardware/bluetooth/default.nix b/modules/hardware/bluetooth/default.nix index 2e9ee8f..5763148 100644 --- a/modules/hardware/bluetooth/default.nix +++ b/modules/hardware/bluetooth/default.nix @@ -18,7 +18,7 @@ in powerOnBoot = true; settings = { General = { - Enable = "Source,Sink,Media,Socket"; + Experimental = true; # show battery percentages }; }; }; diff --git a/profiles/powersave/default.nix b/profiles/powersave/default.nix index 4f53939..01d6501 100644 --- a/profiles/powersave/default.nix +++ b/profiles/powersave/default.nix @@ -27,5 +27,12 @@ in thermald.enable = true; upower.enable = true; }; + + services.udev.extraRules = '' + # disable USB auto suspend for Keychron Q3 HE + ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="0b31", ATTR{power/autosuspend}="-1" + # disable USB auto suspend for Keychron Q3 + ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="0123", ATTR{power/autosuspend}="-1" + ''; }; } diff --git a/profiles/sway/autostart.nix b/profiles/sway/autostart.nix index bf814f5..494fc81 100644 --- a/profiles/sway/autostart.nix +++ b/profiles/sway/autostart.nix @@ -8,9 +8,12 @@ in }; config = lib.mkIf cfg.enable { - services.displayManager.lemurs = { - enable = true; - settings.environment_switcher.include_tty_shell = true; - }; + + # start sway if login happens + environment.interactiveShellInit = '' + if test `tty` = /dev/tty1; then + exec sway + fi + ''; }; }