pass flake path as first argument
This commit is contained in:
parent
3ef331d57e
commit
686885f784
2 changed files with 5 additions and 6 deletions
|
@ -4,11 +4,10 @@ set -euo pipefail
|
|||
bold=$(tput bold)
|
||||
reset=$(tput sgr0)
|
||||
|
||||
script_path=$(readlink -f "${BASH_SOURCE[0]}")
|
||||
flake=$(dirname "$script_path")
|
||||
flake="$1"
|
||||
|
||||
echo "${bold}Building configuration...$reset"
|
||||
configuration=$(sudo nixos-rebuild dry-activate --flake "$flake" --keep-going "$@")
|
||||
configuration=$(sudo nixos-rebuild dry-activate --flake "$flake" --keep-going "${@:2}")
|
||||
echo "$configuration"
|
||||
|
||||
nix run "$flake#nixosConfigurations.$(hostname).pkgs.nvd" -- diff /run/current-system "$configuration"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue