Disable low-latency audio (surprise surprise, it started crackling
This commit is contained in:
parent
3d7e74180f
commit
68fd8c988b
|
@ -252,7 +252,7 @@
|
|||
"locked": {
|
||||
"lastModified": 1717092160,
|
||||
"narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=",
|
||||
"ref": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
||||
"revCount": 42,
|
||||
"type": "git",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
initrd = {
|
||||
# Enable systemd for TPM auto-unlocking
|
||||
systemd.enable = true;
|
||||
|
||||
|
||||
availableKernelModules = [
|
||||
"surface_aggregator"
|
||||
"surface_aggregator_registry"
|
||||
|
|
|
@ -14,10 +14,7 @@ with lib;
|
|||
|
||||
config = mkIf (role == "workstation") {
|
||||
host.ui = {
|
||||
audio = {
|
||||
enable = true;
|
||||
enableLowLatency = true;
|
||||
};
|
||||
audio.enable = true;
|
||||
bluetooth.enable = true;
|
||||
gnome.enable = true;
|
||||
flatpak.enable = true;
|
||||
|
|
|
@ -66,6 +66,14 @@ in
|
|||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf cfg.enable {
|
||||
# Assert that system.autoUpgrade is not also enabled
|
||||
assertions = [
|
||||
{
|
||||
assertion = !config.system.autoUpgrade.enable;
|
||||
message = "The system.autoUpgrade option conflicts with this module.";
|
||||
}
|
||||
];
|
||||
|
||||
# Pull and apply updates.
|
||||
systemd.services."nixos-upgrade" = {
|
||||
serviceConfig = {
|
||||
|
|
Loading…
Reference in a new issue