From b81890d769963f60a8d09c41669b36dd5dbe7215 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 18 Apr 2024 12:57:14 +0200 Subject: [PATCH] nixos-unstable: fixes for NixOS 24.05 Wireplumber config changes for bluetooth pinentryFlavor -> pinentryPackage alacritty config changed to TOML alacritty deprecated config fixes Nix registry now gets generated from flake inputs -> (nixpkgs.flake.setFlakeRegistry) nssmdns -> nssmdns4 --- modules/bluetooth/default.nix | 19 ++++++++++--------- modules/crypto/default.nix | 2 +- modules/graphical/alacritty.nix | 8 ++++---- modules/graphical/default.nix | 4 ++-- modules/nix/default.nix | 7 ------- modules/printing/default.nix | 2 +- users/pub-solar/default.nix | 4 ++-- 7 files changed, 20 insertions(+), 26 deletions(-) diff --git a/modules/bluetooth/default.nix b/modules/bluetooth/default.nix index 4ce05b12..e7b831b7 100644 --- a/modules/bluetooth/default.nix +++ b/modules/bluetooth/default.nix @@ -22,14 +22,15 @@ }; services.blueman.enable = true; - environment.etc."wireplumber/bluetooth.lua.d/51-bluez-config.lua" = { - text = '' - bluez_monitor.properties = { - ["bluez5.enable-sbc-xq"] = true, - ["bluez5.enable-msbc"] = true, - ["bluez5.enable-hw-volume"] = true, - ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" + services.pipewire.wireplumber.configPackages = [ + # https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/bluetooth.html + (pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/10-bluez.conf" '' + monitor.bluez.properties = { + bluez5.enable-hw-volume = true + bluez5.enable-msbc = true + bluez5.enable-sbc-xq = true + bluez5.headset-roles = [ hsp_hs hsp_ag hfp_hf hfp_ag ] } - ''; - }; + '') + ]; } diff --git a/modules/crypto/default.nix b/modules/crypto/default.nix index 5ed13b61..d6acd6c5 100644 --- a/modules/crypto/default.nix +++ b/modules/crypto/default.nix @@ -22,7 +22,7 @@ in { services.gpg-agent = { enable = true; - pinentryFlavor = lib.mkDefault "gnome3"; + pinentryPackage = lib.mkDefault pkgs.pinentry-gnome3; verbose = true; }; diff --git a/modules/graphical/alacritty.nix b/modules/graphical/alacritty.nix index fe5dd816..c021224c 100644 --- a/modules/graphical/alacritty.nix +++ b/modules/graphical/alacritty.nix @@ -30,9 +30,6 @@ multiplier = 3; }; - # When true, bold text is drawn using the bright variant of colors. - draw_bold_text_with_bright_colors = true; - font = { # The normal (roman) font face to use. normal = { @@ -68,7 +65,7 @@ }; }; - key_bindings = [ + keyboard.bindings = [ { key = "V"; mods = "Control|Super"; @@ -172,6 +169,9 @@ # Base16 Burn 256 - alacritty color config # Benjamin Bädorf colors = { + # When true, bold text is drawn using the bright variant of colors. + draw_bold_text_with_bright_colors = true; + # Default colors primary = { background = "0x1a181a"; diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index e0159378..823b14d5 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -6,7 +6,7 @@ }: with lib; let psCfg = config.pub-solar; - yamlFormat = pkgs.formats.yaml {}; + tomlFormat = pkgs.formats.toml {}; sessionVariables = { WLR_RENDERER = if psCfg.graphical.wayland.software-renderer.enable @@ -101,7 +101,7 @@ in { home-manager.users."${psCfg.user.name}" = { home.file."xinitrc".source = ./.xinitrc; - xdg.configFile."alacritty/alacritty.yml".source = yamlFormat.generate "alacritty.yml" (import ./alacritty.nix); + xdg.configFile."alacritty/alacritty.toml".source = tomlFormat.generate "alacritty.toml" (import ./alacritty.nix); xdg.configFile."xmodmap".source = ./.config/xmodmap; xdg.configFile."user-dirs.dirs".source = ./.config/user-dirs.dirs; xdg.configFile."user-dirs.locale".source = ./.config/user-dirs.locale; diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 9f5a13b4..4ba47260 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -34,13 +34,6 @@ gc.automatic = true; optimise.automatic = true; - registry = { - nixpkgs.flake = flake.inputs.nixpkgs; - unstable.flake = flake.inputs.unstable; - master.flake = flake.inputs.master; - system.flake = flake.self; - }; - settings = { # Improve nix store disk usage auto-optimise-store = true; diff --git a/modules/printing/default.nix b/modules/printing/default.nix index 4ba91037..c681bdf7 100644 --- a/modules/printing/default.nix +++ b/modules/printing/default.nix @@ -10,7 +10,7 @@ with lib; let in { services.avahi.enable = true; services.avahi.ipv6 = true; - services.avahi.nssmdns = true; + services.avahi.nssmdns4 = true; services.avahi.publish.enable = true; services.avahi.publish.userServices = true; diff --git a/users/pub-solar/default.nix b/users/pub-solar/default.nix index 1892857e..c500b324 100644 --- a/users/pub-solar/default.nix +++ b/users/pub-solar/default.nix @@ -1,4 +1,4 @@ -{config, ...}: { +{config, pkgs, ...}: { pub-solar = { # These are your personal settings # The only required settings are `name` and `password`, @@ -15,5 +15,5 @@ ]; }; }; - home-manager.users.pub-solar.services.gpg-agent.pinentryFlavor = "curses"; + home-manager.users.pub-solar.services.gpg-agent.pinentryPackage = pkgs.pinentry-curses; }