Load .env file
This commit is contained in:
parent
02af41a3e4
commit
85b5df3d1f
2 changed files with 17 additions and 7 deletions
2
.envrc
2
.envrc
|
@ -1 +1,3 @@
|
||||||
|
dotenv_if_exists
|
||||||
|
|
||||||
use flake
|
use flake
|
||||||
|
|
22
Justfile
22
Justfile
|
@ -1,11 +1,19 @@
|
||||||
build:
|
set dotenv-load
|
||||||
nixos-rebuild --flake .# build
|
|
||||||
|
default:
|
||||||
|
@just --choose
|
||||||
|
|
||||||
|
build machine="":
|
||||||
|
nixos-rebuild --flake .#{{machine}} build
|
||||||
|
|
||||||
diff:
|
diff:
|
||||||
nvd diff /run/current-system ./result
|
nvd diff /run/current-system ./result
|
||||||
|
|
||||||
switch:
|
switch machine="":
|
||||||
nixos-rebuild --flake .# --use-remote-sudo switch
|
nixos-rebuild --flake .#{{machine}} --use-remote-sudo switch
|
||||||
|
|
||||||
deploy HOST:
|
fmt:
|
||||||
nix run ".#apps.nixinate.{{HOST}}"
|
nix fmt
|
||||||
|
|
||||||
|
deploy host:
|
||||||
|
nix run ".#apps.nixinate.{{host}}"
|
||||||
|
|
Loading…
Reference in a new issue