Fix realod

better fix for #75
This commit is contained in:
David Arnold 2021-01-11 19:36:48 -05:00 committed by GitHub
parent e67cd3701a
commit 176bdcf34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@ let
in in
{ pkgs ? pkgs', ... }: { pkgs ? pkgs', ... }:
let let
configs = "${toString ./.}#nixosConfigurations";
build = "config.system.build"; build = "config.system.build";
installPkgs = (import "${nixpkgs}/nixos" { installPkgs = (import "${nixpkgs}/nixos" {
@ -19,7 +18,7 @@ let
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
echo "Usage: $(basename "$0") [ iso | install {host} | {host} [switch|boot|test] ]" echo "Usage: $(basename "$0") [ iso | install {host} | {host} [switch|boot|test] ]"
elif [[ "$1" == "iso" ]]; then elif [[ "$1" == "iso" ]]; then
nix build ${configs}.niximg.${build}.isoImage "${"\${@:2}"}" nix build $DEVSHELL_ROOT#nixosConfigurations.niximg.${build}.isoImage "${"\${@:2}"}"
elif [[ "$1" == "install" ]]; then elif [[ "$1" == "install" ]]; then
sudo nixos-install --flake ".#$2" "${"\${@:3}"}" sudo nixos-install --flake ".#$2" "${"\${@:3}"}"
else else