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