Something went wrong. Try again.
A Nordic stronghold for declarative computing.
flakes nix nixos nix-darwin
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546hostname := "$HOSTNAME"# default action: list actionsdefault: @just --list# Rebuild the systemswitch hostname=hostname: #!/usr/bin/env sh if [[ "$OSTYPE" == "darwin"* ]]; then \ sudo darwin-rebuild switch --flake .#{{ hostname }}; \ else \ sudo nixos-rebuild switch --flake .#{{ hostname }} --impure; \ fi;# Build a new configurationboot hostname=hostname: #!/usr/bin/env sh if [[ "$OSTYPE" == "darwin"* ]]; then \ @echo "This is not possible to do it on MacOS." else \ sudo nixos-rebuild boot --flake .#{{ hostname }} --impure; \ fi;# Format codeformat: nix fmt# Update dependenciesupdate: nix flake update# Cleanup all unused packages and generationsclean: nix-store --optimize nix-collect-garbage -d sudo nix-collect-garbage -d# Print size of the nix storesize: du -sh /nix/store# Generate facter report from the current hardware into the host configuration foldergenerate-hardware: sudo nix run --option experimental-features "nix-command flakes" nixpkgs#nixos-facter -- -o ./configurations/{{ hostname }}/facter.json