diff --git a/.justfile b/.justfile index 9c3d152..f964077 100644 --- a/.justfile +++ b/.justfile @@ -2,13 +2,18 @@ default: @just --choose +export NIX_CONFIG := " + accept-flake-config = true + extra-experimental-features = flakes nix-command +" + # wrapper around {nixos,darwin}-rebuild, always taking the flake [private] [macos] rebuild *args: #!/usr/bin/env bash set -euxo pipefail - dir="{{join(env_var('TMPDIR'), 'nix-darwin')}}" + dir="${TMPDIR:-/tmp}/nix-darwin" ! [[ -x "$dir/sw/bin/darwin-rebuild" ]] && nix build .\#darwinConfigurations.`hostname`.system -o "$dir" "$dir/sw/bin/darwin-rebuild" --flake . {{args}} @@ -21,7 +26,7 @@ build *args: @just rebuild build {{args}} home *args: - nix run ".#homeConfigurations.winston.activationPackage" --accept-flake-config {{args}} + nix run ".#homeConfigurations.winston.activationPackage" {{args}} [linux] boot *args: