feat: make nhs a direnv script
This commit is contained in:
parent
66ffe8350c
commit
50c1504d47
3 changed files with 15 additions and 3 deletions
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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue