my over complex system configurations
dotfiles.isabelroses.com/
nixos
nix
flake
dotfiles
linux
1default:
2 @just --list --unsorted
3
4[macos]
5rebuild *args: verify
6 darwin-rebuild switch --flake . {{args}} |& nom
7
8[linux]
9rebuild *args: verify
10 sudo nixos-rebuild switch --flake . {{args}} |& nom
11
12build pkg:
13 nix build .#{{pkg}} --log-format internal-json -v |& nom --json
14
15iso image: (build "images.{{image}} -o {{image}}")
16
17[private]
18verify *args:
19 nix-store --verify {{args}}
20
21repair: (verify "--check-contents --repair")
22
23clean:
24 @sudo true
25 nix-collect-garbage --delete-older-than 3d
26 nix store optimise
27
28check:
29 nix flake check
30
31update *input:
32 nix flake update {{input}} --refresh