Files
dotfiles/justfile
servius 5eb002fe8b
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
fix: format before adding to git
2026-01-13 11:38:21 +05:30

42 lines
975 B
Makefile

set dotenv-load
[macos]
install:
sudo nix run nix-darwin -- switch --flake .
[linux]
install:
sudo nixos-rebuild switch --flake . --builders '' --max-jobs 1
[macos]
build:
nix run nix-darwin -- build --flake . --show-trace
[linux]
build:
nixos-rebuild build --flake . --show-trace
nix args:
nix --extra-experimental-features "nix-command flakes" {{args}}
home:
nix --extra-experimental-features "nix-command flakes" run home-manager/master -- switch --flake . --show-trace
nvim:
nix run .#neovim
[linux]
rollback:
sudo nixos-rebuild switch --rollback --flake .
add program:
echo '{pkgs, ...}: { home.packages = [pkgs.{{program}}];}' > home/programs/{{program}}.nix
ast-grep run -p '{ imports = [$$$ITEMS] }' --selector binding --rewrite 'imports = [$$$ITEMS ./{{program}}.nix ]' home/programs/default.nix -i
alejandra fmt home/programs/{{program}}.nix home/programs/default.nix
git add home/programs/{{program}}.nix