From 159f911d6875262bcd9babb1882bcbffaaff9201 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 23 Jan 2024 15:36:31 -0600 Subject: [PATCH] add new arg to styx --- modules/styx/styx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/styx/styx b/modules/styx/styx index 18d6371..9e95771 100755 --- a/modules/styx/styx +++ b/modules/styx/styx @@ -64,6 +64,11 @@ build() { esac } +dry() { + # poor mans nix flake check + nix build "$FLAKE_PATH#nixosConfigurations.$(hostname).config.system.build.toplevel" --dry-run +} + if [[ $# -eq 0 ]]; then log no command specified see below for help help @@ -71,7 +76,7 @@ fi while [[ $# -gt 0 ]]; do case $1 in - fmt | boot | switch | store | build) + fmt | boot | switch | store | build | dry) cmd=$1 shift ;;