mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 10:26:06 -07:00
move nixos update to justfile
This commit is contained in:
parent
3fdc0195b8
commit
90d9263c25
@ -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() {
|
||||
{
|
||||
|
4
justfile
4
justfile
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user