1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-26 01:26:23 +03:00

Merge pull request #87 from blaggacao/patch-1

Fix realod
This commit is contained in:
Timothy DeHerrera 2021-01-11 17:40:21 -07:00 committed by GitHub
commit 62ecffc1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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