feat: make nhs a direnv script

This commit is contained in:
Jet Pham 2026-02-28 16:30:45 -08:00
parent 66ffe8350c
commit 50c1504d47
No known key found for this signature in database
3 changed files with 15 additions and 3 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

View file

@ -64,5 +64,19 @@
]; ];
}; };
}; };
devShells.x86_64-linux.default =
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
nhs = pkgs.writeShellScriptBin "nhs" ''
nh os switch --hostname framework --impure path:. "$@"
'';
in
pkgs.mkShell {
packages = [
pkgs.nh
nhs
];
};
}; };
} }

View file

@ -119,8 +119,6 @@
OCL_ICD_VENDORS = "/etc/OpenCL/vendors"; OCL_ICD_VENDORS = "/etc/OpenCL/vendors";
POCL_DEVICES = "cpu"; POCL_DEVICES = "cpu";
BROWSER = "zen"; BROWSER = "zen";
# Set FLAKE for nh
NH_FLAKE = "${config.home.homeDirectory}/Documents/nix-config";
}; };
programs.helix = { programs.helix = {
@ -219,7 +217,6 @@
jn = "jj new"; jn = "jj new";
jdiff = "jj diff"; jdiff = "jj diff";
jsq = "jj squash"; jsq = "jj squash";
nhs = "nh os switch";
h = "hx"; h = "hx";
vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}"; vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}";
}; };