move nixos update to justfile

This commit is contained in:
Tyler Starr 2025-03-12 23:37:03 -07:00
parent 3fdc0195b8
commit 90d9263c25
3 changed files with 5 additions and 9 deletions

View File

@ -1,14 +1,6 @@
#!/usr/bin/env bash
# https://github.com/starr-dusT/dotfiles
# nixos
alias nu="cd ~/.local/share/chezmoi/provision && \
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
cd -"
alias nb="cd ~/.local/share/chezmoi/provision && \
sudo nix run .#nixosConfigurations.wsl.config.system.build.tarballBuilder && \
cd -"
# sesh
function b() {
{

View File

@ -1,4 +1,8 @@
[working-directory: 'provision']
update:
cd ~/.local/share/chezmoi/provision
sudo nixos-rebuild switch --impure --flake .#$(hostname)
build-wsl:
cd ~/.local/share/chezmoi/provision
sudo nix run .#nixosConfigurations.wsl.config.system.build.tarballBuilder

View File

@ -32,4 +32,4 @@ Perform additional setup found in [additional-setup](additional-setup.md)
## Update
`nixos-rebuild` command is aliased to `nu` assuming the machine's flake output is named the same at the hostname of the machine.
`nixos-rebuild` command is built into the `justfile` with this folder, assuming the machine's flake output is named the same at the hostname of the machine.