mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-19 21:00:32 +00:00
linux init
This commit is contained in:
parent
8ed16afd7d
commit
24b16cba14
13 changed files with 338 additions and 209 deletions
18
justfile
18
justfile
|
|
@ -4,11 +4,21 @@ default:
|
|||
check:
|
||||
nix --extra-experimental-features 'nix-command flakes' flake check
|
||||
|
||||
build:
|
||||
nix --extra-experimental-features 'nix-command flakes' build .#darwinConfigurations.hari-macbook-pro.system
|
||||
build config='hari-macbook-pro':
|
||||
#!/usr/bin/env bash
|
||||
if [[ "{{config}}" == "hari-macbook-pro" ]]; 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:
|
||||
sudo env PATH="$PATH" nix --extra-experimental-features 'nix-command flakes' run github:LnL7/nix-darwin/master#darwin-rebuild -- switch --flake .#hari-macbook-pro
|
||||
switch config='hari-macbook-pro':
|
||||
#!/usr/bin/env bash
|
||||
if [[ "{{config}}" == "hari-macbook-pro" ]]; 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
|
||||
fi
|
||||
|
||||
fmt:
|
||||
nix --extra-experimental-features 'nix-command flakes' fmt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue