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
|
||||
|
|
22
Justfile
22
Justfile
|
@ -1,11 +1,19 @@
|
|||
build:
|
||||
nixos-rebuild --flake .# build
|
||||
set dotenv-load
|
||||
|
||||
default:
|
||||
@just --choose
|
||||
|
||||
build machine="":
|
||||
nixos-rebuild --flake .#{{machine}} build
|
||||
|
||||
diff:
|
||||
nvd diff /run/current-system ./result
|
||||
nvd diff /run/current-system ./result
|
||||
|
||||
switch:
|
||||
nixos-rebuild --flake .# --use-remote-sudo switch
|
||||
switch machine="":
|
||||
nixos-rebuild --flake .#{{machine}} --use-remote-sudo switch
|
||||
|
||||
deploy HOST:
|
||||
nix run ".#apps.nixinate.{{HOST}}"
|
||||
fmt:
|
||||
nix fmt
|
||||
|
||||
deploy host:
|
||||
nix run ".#apps.nixinate.{{host}}"
|
||||
|
|
Loading…
Reference in a new issue