mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 07:04:47 +00:00
flake parts
This commit is contained in:
parent
6dfef30594
commit
9a13c35acd
7 changed files with 144 additions and 90 deletions
3
justfile
3
justfile
|
|
@ -17,7 +17,8 @@ switch config='darwin':
|
|||
if [[ "{{config}}" == "darwin" ]]; then
|
||||
sudo env PATH="$PATH" nix --extra-experimental-features 'nix-command flakes' run github:nix-darwin/nix-darwin/master#darwin-rebuild -- switch --flake path:.#{{config}}
|
||||
else
|
||||
nix --extra-experimental-features 'nix-command flakes' run github:nix-community/home-manager -- switch --flake path:.#{{config}} -b hm-bak
|
||||
backup_ext="hm-bak-$(date +%Y%m%d-%H%M%S)"
|
||||
nix --extra-experimental-features 'nix-command flakes' run github:nix-community/home-manager -- switch --flake path:.#{{config}} -b "$backup_ext"
|
||||
fi
|
||||
|
||||
fmt:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue