dotfiles/justfile

35 lines
718 B
Makefile
Raw Normal View History

2024-02-24 10:21:53 +00:00
_default:
just --list
check:
nix flake check
fmt:
nix fmt flake.nix lib
nixos-build *args:
sudo nixos-rebuild build --flake . {{ args }}
2024-02-24 10:21:53 +00:00
nixos-switch *args:
sudo nixos-rebuild switch --flake . {{ args }}
2024-02-29 23:23:57 +00:00
nixos-test *args:
sudo nixos-rebuild test --flake . {{ args }}
2024-02-24 10:21:53 +00:00
update:
nix flake update
2024-04-08 12:01:54 +00:00
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