dotfiles/justfile
Oliver Davies 7f2df5f726 Run nix fmt
Format using `nixfmt-rfc-style`.
2024-06-10 09:38:34 +01:00

35 lines
718 B
Makefile

_default:
just --list
check:
nix flake check
fmt:
nix fmt flake.nix lib
nixos-build *args:
sudo nixos-rebuild build --flake . {{ args }}
nixos-switch *args:
sudo nixos-rebuild switch --flake . {{ args }}
nixos-test *args:
sudo nixos-rebuild test --flake . {{ args }}
update:
nix flake update
wsl-build:
NIXPKGS_ALLOW_UNFREE=1 home-manager build \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--flake ".#wsl2" \
--impure
wsl-switch:
NIXPKGS_ALLOW_UNFREE=1 home-manager switch \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--flake ".#wsl2" \
--impure