diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 82f3d515..ed32537a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -154,6 +154,9 @@ enable32Bit = true; }; + # Noise cancellation + programs.noisetorch.enable = true; + # UPS (Green Cell 2000VA) power.ups = { enable = true; diff --git a/nixos/flake.lock b/nixos/flake.lock index 3f744ee3..a14e100e 100644 --- a/nixos/flake.lock +++ b/nixos/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1772060133, - "narHash": "sha256-VuyRptb8v1lVGMlLp4/1vRX3Efwec0CN0S6mKmDPzLg=", + "lastModified": 1772380461, + "narHash": "sha256-O3ukj3Bb3V0Tiy/4LUfLlBpWypJ9P0JeUgsKl2nmZZY=", "owner": "nix-community", "repo": "home-manager", - "rev": "ce9b6e52500a0ea0ec48f0bbf6d7a3e431d9dfa4", + "rev": "f140aa04d7d14f8a50ab27f3691b5766b17ae961", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1771848320, - "narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=", + "lastModified": 1772198003, + "narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "2fc6539b481e1d2569f25f8799236694180c0993", + "rev": "dd9b079222d43e1943b6ebd802f04fd959dc8e61", "type": "github" }, "original": { diff --git a/nixos/home.nix b/nixos/home.nix index 0b15af43..a16279fd 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -25,7 +25,7 @@ # Dev tools / AI vscode - antigravity + codex opencode-desktop nodejs python3 @@ -205,6 +205,7 @@ raid = "sudo mdadm --detail /dev/md0"; unp = "unp -U"; cat = "bat"; + lmcodex = "codex --oss -m qwen3-coder-30b-a3b-instruct"; }; historySize = 10000; historyFileSize = 100000; @@ -445,6 +446,29 @@ }; }; + systemd.user.services.noisetorch = { + Unit = { + Description = "NoiseTorch Noise Cancelling"; + After = [ + "graphical-session.target" + "pipewire.service" + "wireplumber.service" + ]; + Wants = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + Service = { + Type = "oneshot"; + ExecStart = "${pkgs.noisetorch}/bin/noisetorch -i"; + ExecStop = "${pkgs.noisetorch}/bin/noisetorch -u"; + RemainAfterExit = true; + TimeoutStartSec = "30s"; + }; + }; + # Let Home Manager install and manage itself. programs.home-manager.enable = true;