mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Desktop/General] apply systemd-suspend patch to rtkit-daemon
Fixes pipewire priority on resume
This commit is contained in:
parent
32021fa7e1
commit
e9d4ee4c44
1 changed files with 15 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, myLib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
|
|
@ -172,6 +172,20 @@ in {
|
|||
services.pcscd.enable = mkDefault true;
|
||||
|
||||
networking.networkmanager.plugins = [ pkgs.networkmanager-openvpn ];
|
||||
|
||||
nixpkgs.overlays = [(final: prev: {
|
||||
|
||||
# Patch rtkit to enable graceful systemd suspend support
|
||||
rtkit = myLib.optimizations.addAttrs prev.rtkit {
|
||||
patches = [
|
||||
(final.fetchpatch {
|
||||
name = "add-graceful-system-suspend-support.patch";
|
||||
url = "https://patch-diff.githubusercontent.com/raw/heftig/rtkit/pull/35.patch";
|
||||
hash = "sha256-NRVNSa7fzgEDn6ic/Vb36VCj2kv9AC6+Dm2uYNgbEZw=";
|
||||
})
|
||||
];
|
||||
};
|
||||
})];
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue