From 552196c3f9d960a7ecdaa1293d4d405fc23dd287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sat, 7 Mar 2026 20:12:03 +0100 Subject: [PATCH] feat: add optional argument to just switch --- justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 8d6764c..cd45777 100644 --- a/justfile +++ b/justfile @@ -3,8 +3,8 @@ default: @just --list # rebuild and switch -switch: - nixos-rebuild switch --flake . --sudo +switch config="": + nixos-rebuild switch --flake .{{ if config != "" { "#" + config } else { "" } }} --sudo # fetch flake inputs sync: