Add codex and configure noisetorch
This commit is contained in:
@@ -154,6 +154,9 @@
|
|||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Noise cancellation
|
||||||
|
programs.noisetorch.enable = true;
|
||||||
|
|
||||||
# UPS (Green Cell 2000VA)
|
# UPS (Green Cell 2000VA)
|
||||||
power.ups = {
|
power.ups = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
12
nixos/flake.lock
generated
12
nixos/flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772060133,
|
"lastModified": 1772380461,
|
||||||
"narHash": "sha256-VuyRptb8v1lVGMlLp4/1vRX3Efwec0CN0S6mKmDPzLg=",
|
"narHash": "sha256-O3ukj3Bb3V0Tiy/4LUfLlBpWypJ9P0JeUgsKl2nmZZY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ce9b6e52500a0ea0ec48f0bbf6d7a3e431d9dfa4",
|
"rev": "f140aa04d7d14f8a50ab27f3691b5766b17ae961",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -22,11 +22,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771848320,
|
"lastModified": 1772198003,
|
||||||
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
"narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
"rev": "dd9b079222d43e1943b6ebd802f04fd959dc8e61",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
# Dev tools / AI
|
# Dev tools / AI
|
||||||
vscode
|
vscode
|
||||||
antigravity
|
codex
|
||||||
opencode-desktop
|
opencode-desktop
|
||||||
nodejs
|
nodejs
|
||||||
python3
|
python3
|
||||||
@@ -205,6 +205,7 @@
|
|||||||
raid = "sudo mdadm --detail /dev/md0";
|
raid = "sudo mdadm --detail /dev/md0";
|
||||||
unp = "unp -U";
|
unp = "unp -U";
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
|
lmcodex = "codex --oss -m qwen3-coder-30b-a3b-instruct";
|
||||||
};
|
};
|
||||||
historySize = 10000;
|
historySize = 10000;
|
||||||
historyFileSize = 100000;
|
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.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user