1
0
Fork 0

Add VRR in Gnome; try fixing Beeper Wayland usage

This commit is contained in:
Aires 2024-05-05 19:51:37 -04:00
parent 88d9bacff0
commit 92d976ff0f
5 changed files with 21 additions and 20 deletions

View file

@ -117,11 +117,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714900398, "lastModified": 1714931954,
"narHash": "sha256-H7XYHpjk1G6dkA3AnbYrKtaTFjcCE7ul6nUVlVQxtsA=", "narHash": "sha256-QXpLmgmisNK2Zgpnu9DiO9ScrKJuJ4zmiMTNpObVIuk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "fdaaf543bad047639ef0b356ea2e6caec2f1215c", "rev": "3dfe05aa9b5646995ace887931fa60269a039777",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -221,11 +221,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1714763106, "lastModified": 1714906307,
"narHash": "sha256-DrDHo74uTycfpAF+/qxZAMlP/Cpe04BVioJb6fdI0YY=", "narHash": "sha256-UlRZtrCnhPFSJlDQE7M0eyhgvuuHBTe1eJ9N9AQlJQ0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e9be42459999a253a9f92559b1f5b72e1b44c13d", "rev": "25865a40d14b3f9cf19f19b924e2ab4069b09588",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -4,7 +4,7 @@
description = "Aires' system Flake"; description = "Aires' system Flake";
inputs = { inputs = {
# Track base packages against Nix unstable # Track base packages against unstable
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# SecureBoot support # SecureBoot support

View file

@ -15,7 +15,7 @@ with lib;
# Install Beeper, but override the InstallPhase so it uses Wayland. # Install Beeper, but override the InstallPhase so it uses Wayland.
# Check Flatpak status here: https://github.com/daegalus/beeper-flatpak-wip/issues/1 # Check Flatpak status here: https://github.com/daegalus/beeper-flatpak-wip/issues/1
(beeper.overrideAttrs (oldAttrs: { (beeper.overrideAttrs (oldAttrs: {
installPhase = '' postInstall = ''
wrapProgram $out/bin/beeper \ wrapProgram $out/bin/beeper \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations}} --no-update" --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations}} --no-update"
''; '';

View file

@ -27,22 +27,22 @@ with lib;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true; jack.enable = true;
# Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup
extraConfig.pipewire = mkIf cfg.enableLowLatency {
"92-low-latency.conf" = {
"context.properties" = {
"default.clock.rate" = 48000;
"default.clock.quantum" = 32;
"default.clock.min-quantum" = 32;
"default.clock.max-quantum" = 32;
};
};
};
}; };
services.flatpak.packages = mkIf config.host.ui.flatpak.enable [ services.flatpak.packages = mkIf config.host.ui.flatpak.enable [
"com.github.wwmm.easyeffects" "com.github.wwmm.easyeffects"
]; ];
# Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup
services.pipewire.extraConfig.pipewire = mkIf cfg.enableLowLatency {
"92-low-latency.conf" = {
"context.properties" = {
"default.clock.rate" = 48000;
"default.clock.quantum" = 32;
"default.clock.min-quantum" = 32;
"default.clock.max-quantum" = 32;
};
};
};
}; };
} }

View file

@ -6,6 +6,7 @@
workspaces-only-on-primary = false; workspaces-only-on-primary = false;
experimental-features = [ experimental-features = [
"scale-monitor-framebuffer" # Fractional scaling "scale-monitor-framebuffer" # Fractional scaling
"variable-refresh-rate"
]; ];
}; };