Disable low-latency audio (surprise surprise, it started crackling
This commit is contained in:
parent
3d7e74180f
commit
68fd8c988b
|
@ -252,7 +252,7 @@
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717092160,
|
"lastModified": 1717092160,
|
||||||
"narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=",
|
"narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=",
|
||||||
"ref": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
"ref": "refs/heads/main",
|
||||||
"rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
"rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
|
||||||
"revCount": 42,
|
"revCount": 42,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -14,10 +14,7 @@ with lib;
|
||||||
|
|
||||||
config = mkIf (role == "workstation") {
|
config = mkIf (role == "workstation") {
|
||||||
host.ui = {
|
host.ui = {
|
||||||
audio = {
|
audio.enable = true;
|
||||||
enable = true;
|
|
||||||
enableLowLatency = true;
|
|
||||||
};
|
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
gnome.enable = true;
|
gnome.enable = true;
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
|
|
|
@ -66,6 +66,14 @@ in
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf cfg.enable {
|
(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.
|
# Pull and apply updates.
|
||||||
systemd.services."nixos-upgrade" = {
|
systemd.services."nixos-upgrade" = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
Loading…
Reference in a new issue