2023-05-14 10:15:06 +02:00
|
|
|
[private]
|
2023-03-17 04:50:52 +01:00
|
|
|
default:
|
|
|
|
@just --choose
|
2023-02-15 16:03:38 +01:00
|
|
|
|
2023-06-16 13:47:58 +02:00
|
|
|
export NIX_CONFIG := "
|
|
|
|
accept-flake-config = true
|
|
|
|
extra-experimental-features = flakes nix-command
|
|
|
|
"
|
|
|
|
|
2023-05-19 04:07:44 +02:00
|
|
|
# wrapper around {nixos,darwin}-rebuild, always taking the flake
|
2023-05-14 10:15:06 +02:00
|
|
|
[private]
|
2023-03-02 17:17:36 +01:00
|
|
|
[macos]
|
2023-05-14 11:55:36 +02:00
|
|
|
rebuild *args:
|
2023-12-24 04:17:20 +01:00
|
|
|
darwin-rebuild --flake . {{args}}
|
2023-02-10 06:29:23 +01:00
|
|
|
|
2023-05-14 10:15:06 +02:00
|
|
|
[private]
|
2023-03-02 17:17:36 +01:00
|
|
|
[linux]
|
2023-05-14 11:55:36 +02:00
|
|
|
rebuild *args:
|
2023-08-25 23:16:58 +02:00
|
|
|
sudo nixos-rebuild --flake . {{args}} |& nom
|
2023-03-02 17:17:36 +01:00
|
|
|
|
2023-05-14 11:55:36 +02:00
|
|
|
build *args:
|
2023-07-08 05:42:16 +02:00
|
|
|
@sudo true
|
2023-11-08 18:07:13 +01:00
|
|
|
@just rebuild build {{args}} && nvd diff /run/current-system result
|
2023-03-02 17:17:36 +01:00
|
|
|
|
2023-06-15 01:40:55 +02:00
|
|
|
home *args:
|
2023-06-16 13:47:58 +02:00
|
|
|
nix run ".#homeConfigurations.winston.activationPackage" {{args}}
|
2023-06-15 01:40:55 +02:00
|
|
|
|
2023-03-02 17:17:36 +01:00
|
|
|
[linux]
|
2023-05-14 11:55:36 +02:00
|
|
|
boot *args:
|
|
|
|
@just rebuild boot {{args}}
|
2023-03-17 04:50:52 +01:00
|
|
|
|
2023-05-16 16:21:38 +02:00
|
|
|
[macos]
|
2023-05-14 11:55:36 +02:00
|
|
|
check *args:
|
|
|
|
@just rebuild check {{args}}
|
2023-04-21 05:59:56 +02:00
|
|
|
|
2023-05-16 16:21:38 +02:00
|
|
|
[linux]
|
|
|
|
check *args:
|
|
|
|
@just rebuild test {{args}}
|
|
|
|
|
2023-05-14 11:55:36 +02:00
|
|
|
switch *args:
|
2023-08-25 23:16:58 +02:00
|
|
|
@just build {{args}}
|
2023-12-24 04:17:20 +01:00
|
|
|
@just confirm-switch {{args}}
|
|
|
|
|
|
|
|
[confirm]
|
|
|
|
[private]
|
|
|
|
confirm-switch *args:
|
|
|
|
@just rebuild switch {{args}}
|
2023-05-14 10:15:06 +02:00
|
|
|
|
2023-11-06 07:37:52 +01:00
|
|
|
clean:
|
|
|
|
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
2023-11-16 08:40:27 +01:00
|
|
|
nix-collect-garbage -d
|
|
|
|
nix store optimise
|
2023-11-06 07:37:52 +01:00
|
|
|
|
2023-03-24 02:52:41 +01:00
|
|
|
fetch:
|
2023-12-24 04:17:20 +01:00
|
|
|
@./scripts/fetch.sh
|