1
0
Fork 0

Disable low-latency audio (surprise surprise, it started crackling

This commit is contained in:
Aires 2024-06-03 11:33:25 -04:00
parent 3d7e74180f
commit 68fd8c988b
4 changed files with 11 additions and 6 deletions

View file

@ -252,7 +252,7 @@
"locked": {
"lastModified": 1717092160,
"narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=",
"ref": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
"ref": "refs/heads/main",
"rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
"revCount": 42,
"type": "git",

View file

@ -13,7 +13,7 @@
initrd = {
# Enable systemd for TPM auto-unlocking
systemd.enable = true;
availableKernelModules = [
"surface_aggregator"
"surface_aggregator_registry"

View file

@ -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;

View file

@ -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 = {