2023-06-28 20:48:01 +00:00
|
|
|
[private]
|
|
|
|
default:
|
|
|
|
@just --choose
|
|
|
|
|
|
|
|
[private]
|
|
|
|
rebuild *args:
|
|
|
|
@git add .
|
2024-05-30 03:24:52 +00:00
|
|
|
@sudo nixos-rebuild --flake . {{args}} |& nix run nixpkgs#nix-output-monitor
|
2023-06-28 20:48:01 +00:00
|
|
|
|
|
|
|
# Rebuild the current machine
|
2023-07-05 20:51:53 +00:00
|
|
|
switch *args:
|
|
|
|
@just rebuild switch {{args}}
|
2023-06-28 20:48:01 +00:00
|
|
|
|
2024-04-03 21:57:19 +00:00
|
|
|
hm:
|
2024-05-30 03:24:52 +00:00
|
|
|
@home-manager switch --flake . |& nix run nixpkgs#nix-output-monitor
|
2024-04-04 21:45:49 +00:00
|
|
|
@systemctl --user start agenix.service
|
2024-04-03 21:57:19 +00:00
|
|
|
|
2023-12-29 16:49:22 +00:00
|
|
|
# Rebuild the current machine for next boot
|
|
|
|
boot *args:
|
|
|
|
@just rebuild boot {{args}}
|
|
|
|
|
2023-10-18 04:54:24 +00:00
|
|
|
# Run colmena for remote deploy
|
|
|
|
colmena node:
|
2023-11-05 01:53:56 +00:00
|
|
|
@git add .
|
2023-10-18 04:54:24 +00:00
|
|
|
@nix run nixpkgs#colmena -- apply --on {{node}}
|
|
|
|
|
2023-06-28 20:48:01 +00:00
|
|
|
# Update the flake
|
2023-08-10 01:27:50 +00:00
|
|
|
update-flake:
|
2023-06-28 20:48:01 +00:00
|
|
|
@nix flake update
|
2023-08-10 01:27:50 +00:00
|
|
|
|
|
|
|
# Update an individual input
|
|
|
|
update input:
|
2023-08-13 00:17:50 +00:00
|
|
|
@nix flake lock --update-input {{input}}
|
2024-05-30 03:24:52 +00:00
|
|
|
|
|
|
|
fetch:
|
|
|
|
@nix run nixpkgs#onefetch -- --true-color never --no-bots -d lines-of-code
|
|
|
|
@nix run nixpkgs#scc -- --no-cocomo .
|