Add codex and configure noisetorch

This commit is contained in:
2026-03-03 10:07:15 +00:00
parent d9b49b7aea
commit fcbd126288
3 changed files with 34 additions and 7 deletions

View File

@@ -154,6 +154,9 @@
enable32Bit = true;
};
# Noise cancellation
programs.noisetorch.enable = true;
# UPS (Green Cell 2000VA)
power.ups = {
enable = true;

12
nixos/flake.lock generated
View File

@@ -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": {

View File

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