mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-07 22:25:00 +00:00
Compare commits
No commits in common. "898bb7c910aed3bf8fa1b126ff4dbca82306097a" and "346253a25c9334b3cafd6b781f7a950fddcddb88" have entirely different histories.
898bb7c910
...
346253a25c
5 changed files with 19 additions and 11 deletions
5
boot.nix
5
boot.nix
|
|
@ -25,14 +25,13 @@ let
|
||||||
enableRTGroupSched = {
|
enableRTGroupSched = {
|
||||||
name = "enable-rt-group-sched";
|
name = "enable-rt-group-sched";
|
||||||
patch = null;
|
patch = null;
|
||||||
structuredExtraConfig = with lib.kernel; {
|
extraConfigStructuredConfig = with lib.kernel; {
|
||||||
RT_GROUP_SCHED = yes;
|
RT_GROUP_SCHED = yes;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
enableEnergyModel = {
|
enableEnergyModel = {
|
||||||
name = "enable-energy-model";
|
name = "enable-energy-model";
|
||||||
patch = null;
|
patch = null; extraStructuredConfig = with lib.kernel; {
|
||||||
structuredExtraConfig = with lib.kernel; {
|
|
||||||
ENERGY_MODEL = yes;
|
ENERGY_MODEL = yes;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,20 @@ in {
|
||||||
#services.pcscd.enable = mkDefault true;
|
#services.pcscd.enable = mkDefault true;
|
||||||
|
|
||||||
networking.networkmanager.plugins = [ pkgs.networkmanager-openvpn ];
|
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=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
})];
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ in {
|
||||||
obs-pipewire-audio-capture
|
obs-pipewire-audio-capture
|
||||||
]; })
|
]; })
|
||||||
|
|
||||||
#scribus
|
scribus
|
||||||
yt-dlp
|
yt-dlp
|
||||||
#jellyfin-media-player # https://github.com/NixOS/nixpkgs/issues/437865 https://github.com/jellyfin/jellyfin-media-player/issues/282
|
#jellyfin-media-player # https://github.com/NixOS/nixpkgs/issues/437865 https://github.com/jellyfin/jellyfin-media-player/issues/282
|
||||||
jellyfin-mpv-shim
|
jellyfin-mpv-shim
|
||||||
|
|
|
||||||
|
|
@ -42,23 +42,18 @@ context.modules = [
|
||||||
plugin = ${rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so
|
plugin = ${rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so
|
||||||
label = noise_suppressor_stereo
|
label = noise_suppressor_stereo
|
||||||
control = {
|
control = {
|
||||||
"VAD Threshold (%)" = ${toString noiseFilterStrength}
|
"VAD Threshold (%)" ${toString noiseFilterStrength}
|
||||||
"VAD Grace Period (ms)" = 200
|
|
||||||
"Retroactive VAD Grace (ms)" = 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
capture.props = {
|
capture.props = {
|
||||||
node.name = "capture.rnnoise_source"
|
|
||||||
node.passive = true
|
node.passive = true
|
||||||
audio.rate = 48000
|
|
||||||
}
|
}
|
||||||
playback.props = {
|
playback.props = {
|
||||||
node.name = "rnnoise_source.output"
|
node.name = "rnnoise_source.output"
|
||||||
media.class = Audio/Source
|
media.class = Audio/Source
|
||||||
node.virtual = false
|
node.virtual = false
|
||||||
audio.rate = 48000
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ let
|
||||||
cfg = config.aviallon.general;
|
cfg = config.aviallon.general;
|
||||||
desktopCfg = config.aviallon.desktop;
|
desktopCfg = config.aviallon.desktop;
|
||||||
cmdline = config.aviallon.boot.cmdline;
|
cmdline = config.aviallon.boot.cmdline;
|
||||||
zswapEnabled = if cmdline ? "zswap.enabled" then cmdline."zswap.enabled" == "Y" else false;
|
zswapEnabled = if cmdline ? "zswap.enabled" then cmdline."zswap.enabled" == "Y" else false
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue