mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-26 07:02:03 +00:00
addin ssh key
This commit is contained in:
39
shell.nix
39
shell.nix
@@ -1,23 +1,23 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
with pkgs;
|
||||
let nixBin =
|
||||
writeShellScriptBin "nix" ''
|
||||
${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
|
||||
'';
|
||||
in mkShell {
|
||||
buildInputs = [
|
||||
nix home-manager git ssh-to-age sops age
|
||||
];
|
||||
shellHook = ''
|
||||
export FLAKE="$(pwd)"
|
||||
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
with pkgs; let
|
||||
nixBin = writeShellScriptBin "nix" ''
|
||||
${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
|
||||
'';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
in
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
nix
|
||||
home-manager
|
||||
git
|
||||
ssh-to-age
|
||||
sops
|
||||
age
|
||||
];
|
||||
shellHook = ''
|
||||
export FLAKE="$(pwd)"
|
||||
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
|
||||
'';
|
||||
}
|
||||
# { pkgs ? (import ./nixpkgs.nix) { } }: {
|
||||
# default = pkgs.mkShell {
|
||||
# # Enable experimental features without having to specify the argument
|
||||
@@ -25,3 +25,4 @@ in mkShell {
|
||||
# nativeBuildInputs = with pkgs; [ nix home-manager git ssh-to-age sops age ];
|
||||
# };
|
||||
# }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user