From d0c6fe00028c6ee8a745e87e5498a72defb5d216 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 25 Jan 2024 16:16:28 +0000 Subject: [PATCH] Allow for passing arguments to `nixos` task --- run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run b/run index 9385c9b..242d5e1 100755 --- a/run +++ b/run @@ -22,8 +22,10 @@ function nixos { local profile="${1}" local command="${2}" + shift 2 - sudo nixos-rebuild "${command}" --flake ".#${profile}" + sudo nixos-rebuild "${command}" \ + --flake ".#${profile}" "${@}" } # Update the Nix Flake.