mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 18:36:05 -07:00
move nixos update to justfile
This commit is contained in:
parent
3fdc0195b8
commit
90d9263c25
@ -1,14 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# https://github.com/starr-dusT/dotfiles
|
# 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
|
# sesh
|
||||||
function b() {
|
function b() {
|
||||||
{
|
{
|
||||||
|
4
justfile
4
justfile
@ -1,4 +1,8 @@
|
|||||||
[working-directory: 'provision']
|
[working-directory: 'provision']
|
||||||
|
update:
|
||||||
|
cd ~/.local/share/chezmoi/provision
|
||||||
|
sudo nixos-rebuild switch --impure --flake .#$(hostname)
|
||||||
|
|
||||||
build-wsl:
|
build-wsl:
|
||||||
cd ~/.local/share/chezmoi/provision
|
cd ~/.local/share/chezmoi/provision
|
||||||
sudo nix run .#nixosConfigurations.wsl.config.system.build.tarballBuilder
|
sudo nix run .#nixosConfigurations.wsl.config.system.build.tarballBuilder
|
||||||
|
@ -32,4 +32,4 @@ Perform additional setup found in [additional-setup](additional-setup.md)
|
|||||||
|
|
||||||
## Update
|
## 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