dotnix/justfile

34 lines
702 B
Plaintext
Raw Normal View History

2023-06-28 20:48:01 +00:00
[private]
default:
@just --choose
[private]
rebuild *args:
@git add .
@sudo nixos-rebuild --flake . {{args}} |& nix run nixpkgs#nix-output-monitor
2023-06-28 20:48:01 +00:00
# Rebuild the current machine
switch *args:
@just rebuild switch {{args}}
2023-06-28 20:48:01 +00:00
hm:
@git add .
@home-manager switch --flake . |& nix run nixpkgs#nix-output-monitor
@systemctl --user start agenix.service
# Rebuild the current machine for next boot
boot *args:
@just rebuild boot {{args}}
2023-06-28 20:48:01 +00:00
# Update the flake
update-flake:
2023-06-28 20:48:01 +00:00
@nix flake update
# Update an individual input
update input:
@nix flake lock --update-input {{input}}
fetch:
@nix run nixpkgs#onefetch -- --true-color never --no-bots -d lines-of-code
@nix run nixpkgs#scc -- --no-cocomo .