mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-20 16:05:18 +00:00
dawin/linux
This commit is contained in:
parent
5cdf8fd873
commit
1e4caa255f
6 changed files with 20 additions and 19 deletions
8
justfile
8
justfile
|
|
@ -4,17 +4,17 @@ default:
|
|||
check:
|
||||
nix --extra-experimental-features 'nix-command flakes' flake check
|
||||
|
||||
build config='hari-macbook-pro':
|
||||
build config='darwin':
|
||||
#!/usr/bin/env bash
|
||||
if [[ "{{config}}" == "hari-macbook-pro" ]]; then
|
||||
if [[ "{{config}}" == "darwin" ]]; then
|
||||
nix --extra-experimental-features 'nix-command flakes' build path:.#darwinConfigurations.{{config}}.system
|
||||
else
|
||||
nix --extra-experimental-features 'nix-command flakes' run github:nix-community/home-manager -- build --flake path:.#{{config}}
|
||||
fi
|
||||
|
||||
switch config='hari-macbook-pro':
|
||||
switch config='darwin':
|
||||
#!/usr/bin/env bash
|
||||
if [[ "{{config}}" == "hari-macbook-pro" ]]; then
|
||||
if [[ "{{config}}" == "darwin" ]]; then
|
||||
sudo env PATH="$PATH" nix --extra-experimental-features 'nix-command flakes' run github:LnL7/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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue