feat: make nhs a direnv script
This commit is contained in:
parent
66ffe8350c
commit
50c1504d47
3 changed files with 15 additions and 3 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
use flake
|
||||
14
flake.nix
14
flake.nix
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
3
home.nix
3
home.nix
|
|
@ -119,8 +119,6 @@
|
|||
OCL_ICD_VENDORS = "/etc/OpenCL/vendors";
|
||||
POCL_DEVICES = "cpu";
|
||||
BROWSER = "zen";
|
||||
# Set FLAKE for nh
|
||||
NH_FLAKE = "${config.home.homeDirectory}/Documents/nix-config";
|
||||
};
|
||||
|
||||
programs.helix = {
|
||||
|
|
@ -219,7 +217,6 @@
|
|||
jn = "jj new";
|
||||
jdiff = "jj diff";
|
||||
jsq = "jj squash";
|
||||
nhs = "nh os switch";
|
||||
h = "hx";
|
||||
vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue