From ce3a1df8d9aeee71ffd4baba57e1c850f7020662 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 14 Feb 2025 07:48:53 +0000 Subject: [PATCH] Update run script --- run | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/run b/run index 3667408..ec1e625 100755 --- a/run +++ b/run @@ -4,6 +4,10 @@ set -o errexit set -o nounset set -o pipefail +function build { + _nixos build "$@" +} + function check { nix flake check } @@ -25,23 +29,11 @@ function help { printf "\nExtended help:\n Each task has comments for general usage\n" } -function home-manager:build { - _home build "$@" -} - -function home-manager:switch { - _home switch "$@" -} - -function nixos:build { - _nixos build "$@" -} - -function nixos:switch { +function switch { _nixos switch "$@" } -function nixos:test { +function test { _nixos test "$@" } @@ -49,17 +41,6 @@ function update { nix flake update } -function _home { - local command="$1" - shift 1 - - NIXPKGS_ALLOW_UNFREE=1 home-manager "$command" \ - --extra-experimental-features flakes \ - --extra-experimental-features nix-command \ - --flake ".#$(whoami)@$(hostname)" \ - --impure "$@" -} - function _nixos { local command="$1" shift 1