Load .env file

This commit is contained in:
Erwin Boskma 2023-04-24 08:25:18 +02:00
parent 02af41a3e4
commit 85b5df3d1f
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU
2 changed files with 17 additions and 7 deletions

2
.envrc
View file

@ -1 +1,3 @@
dotenv_if_exists
use flake

View file

@ -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}}"