mirror of
https://github.com/divnix/digga.git
synced 2024-12-24 00:21:47 +03:00
parent
e67cd3701a
commit
176bdcf34b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user