From 3599d9c05759b3a9f4c7d37e7d5e010f590a292e Mon Sep 17 00:00:00 2001 From: tulg Date: Fri, 9 Jan 2026 18:20:49 +0300 Subject: [PATCH] home/portals,archangel/bluetooth --- config/kitty/kitty.conf | 4 ++-- hosts/archangel/configuration.nix | 27 ++++++++++++++++++++-- hosts/archangel/hardware-configuration.nix | 11 --------- modules/home-manager/home.nix | 15 ++++++------ 4 files changed, 35 insertions(+), 22 deletions(-) diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index 173d3a4..04fa82e 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -1,7 +1,7 @@ background_opacity 0.3 enable_audio_bell no - - +enable_wayland_portal no +detect_system_theme no # BEGIN_KITTY_THEME # Rosé Pine Moon #include current-theme.conf diff --git a/hosts/archangel/configuration.nix b/hosts/archangel/configuration.nix index 47d20f9..603f184 100644 --- a/hosts/archangel/configuration.nix +++ b/hosts/archangel/configuration.nix @@ -48,6 +48,28 @@ # Set your time zone. time.timeZone = "Europe/Istanbul"; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + settings = { + General = { + # Shows battery charge of connected devices on supported + # Bluetooth adapters. Defaults to 'false'. + Experimental = true; + # When enabled other devices can connect faster to us, however + # the tradeoff is increased power consumption. Defaults to + # 'false'. + FastConnectable = true; + }; + Policy = { + # Enable all controllers when they are found. This includes + # adapters present on start as well as adapters that are plugged + # in later on. Defaults to 'true'. + AutoEnable = true; + }; + }; + }; + services.blueman.enable = true; # Select internationalisation properties. services.getty.autologinUser = "tulg"; programs.hyprland = { @@ -117,10 +139,11 @@ }; powerManagement.powertop.enable = true; + services.upower.enable = true; services = { - power-profiles-daemon.enable = false; + power-profiles-daemon.enable = true; tlp = { - enable = true; + enable = false; settings = { CPU_BOOST_ON_AC = 1; CPU_BOOST_ON_BAT = 0; diff --git a/hosts/archangel/hardware-configuration.nix b/hosts/archangel/hardware-configuration.nix index 64f2887..af5ade1 100644 --- a/hosts/archangel/hardware-configuration.nix +++ b/hosts/archangel/hardware-configuration.nix @@ -17,17 +17,6 @@ boot.kernelModules = ["kvm-amd"]; boot.extraModulePackages = []; - fileSystems."/" = { - device = "/dev/disk/by-uuid/48340a1a-5055-4d72-b83b-db57a3a7e230"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/5292-3A27"; - fsType = "vfat"; - options = ["fmask=0022" "dmask=0022"]; - }; - swapDevices = []; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking diff --git a/modules/home-manager/home.nix b/modules/home-manager/home.nix index 3f9909f..0e36f35 100644 --- a/modules/home-manager/home.nix +++ b/modules/home-manager/home.nix @@ -152,15 +152,16 @@ in { home.sessionVariables = { NIXOS_OZONE_WL = "1"; # hint Electron apps to use Wayland QT_QPA_PLATFORM = "wayland"; + KITTY_DISABLE_WAYLAND_PORTAL=1; }; xdg.portal = { - enable = true; - config.common.default = "*"; - xdgOpenUsePortal = true; - extraPortals = [ - pkgs.xdg-desktop-portal-hyprland - pkgs.xdg-desktop-portal-gtk - ]; + enable = true; +# wlr.enable = true; + config.common.default = "hyprland"; + xdgOpenUsePortal = true; + extraPortals = [ + pkgs.xdg-desktop-portal-hyprland + ]; }; }