mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
use nh for rebuilding nixos
This commit is contained in:
parent
4adaac1edd
commit
60001f7d37
2 changed files with 3 additions and 1 deletions
|
|
@ -32,6 +32,8 @@
|
||||||
age
|
age
|
||||||
unstable.chezmoi
|
unstable.chezmoi
|
||||||
|
|
||||||
|
nh
|
||||||
|
|
||||||
# backup
|
# backup
|
||||||
restic
|
restic
|
||||||
libnotify
|
libnotify
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[[ $(command -v nixos-rebuild) ]] && sudo nixos-rebuild switch --flake ~/.config/flake
|
[[ $(command -v nixos-rebuild) ]] && nh os switch ~/.config/flake
|
||||||
[[ $(command -v darwin-rebuild) ]] && darwin-rebuild switch --flake ~/.config/flake/
|
[[ $(command -v darwin-rebuild) ]] && darwin-rebuild switch --flake ~/.config/flake/
|
||||||
[[ $(command -v home-manager) ]] && home-manager switch --flake ~/.config/flake/
|
[[ $(command -v home-manager) ]] && home-manager switch --flake ~/.config/flake/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue