main
 1os := if os() == "macos" { "darwin" } else if os() == "linux" { "linux" } else { error("Unsupported OS") }
 2system := arch() + "-" + os
 3
 4# Build current system profile, make it boot default
 5build-boot:
 6    nh os boot .
 7
 8# Build and activate current system profile, make it boot default
 9build-switch:
10    nh os switch .
11
12# Build current system profile, without make it boot default or activate
13build-dry:
14    nh os boot . --dry --show-trace
15
16# Write flake-files config into "flake.nix"
17write-flake:
18    nix run .#write-flake
19
20# Update flake inputs
21update-flake:
22    nix flake update
23
24# Edit Vaultix secret
25edit-secret target:
26    nix run .#vaultix.app.{{ system }}.edit -- '{{ target }}'
27
28# Cache Vaultix secrets
29cache-secrets:
30    nix run .#vaultix.app.{{ system }}.renc