❄️ Dotfiles and NixOS configurations
at main 25 lines 650 B view raw
1default: switch 2 3deploy name: (rebuildD name "switch") 4 5rebuildD name goal: 6 nix run -vL .#deploy-{{name}} -- {{goal}} 7 8rebuild goal *args: 9 #!/usr/bin/env bash 10 set -o pipefail # fail if the build fails instead of blindly returning 0 as nom succeeds 11 sudo nixos-rebuild --flake . --verbose --log-format internal-json {{goal}} {{args}} |& nom --json 12 13build: (rebuild "build") 14boot: (rebuild "boot") 15test: (rebuild "test") 16switch: (rebuild "switch") 17 18 19deploy-all: (deploy "universe") (deploy "eclipse") (deploy "cosmos") 20 21update: 22 nix flake update --commit-lock-file 23 24lock name ref: 25 nix flake lock --override-input {{name}} {{ref}}