Fix aliases, nh, etc

This commit is contained in:
Henry Hiles 2025-05-22 21:19:25 -04:00
commit 660149f46b
No known key found for this signature in database
16 changed files with 81 additions and 60 deletions

View file

@ -1,7 +1,23 @@
{
inputs,
pkgs,
lib,
...
}: let
pkg = inputs.nh.packages.${pkgs.system}.default;
exe = lib.getExe pkg;
in {
programs.nh = {
enable = true;
package = pkg;
clean.enable = true;
flake = "/home/quadradical/.config/nixos";
};
environment.shellAliases = {
clean = "${exe} clean all";
update = "pushd ~/.config/nixos && nix flake update && popd && rebuild";
rebuild = "${exe} os switch";
rebuildServer = "${exe} os switch --hostname quadraticserver --target-host 192.168.0.132";
};
}