Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitaf422eab2e6917383cc321cc0393210f1585e631 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-07-01 12:11:19 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-07-01 12:11:19 +0300
Filesd6cc1f0b7538f4b6029cfc72e33180000a4afc35
nix-af422eab2e6917383cc321cc0393210f1585e631.tar
nix-af422eab2e6917383cc321cc0393210f1585e631.tar.gz
nix-af422eab2e6917383cc321cc0393210f1585e631.zip
Parentd885c729ca9e21af2779cb04377012086589d8c3 (diff)
feat(Justfile): Add nixos build command
1 files changed, 5 insertions, 0 deletions
-rw-r--r--Justfile5
diff --git a/Justfile b/Justfile
index d457f20..098efec 100644
--- a/Justfile
+++ b/Justfile
@@ -4,6 +4,11 @@ HOSTNAME := env_var_or_default("HOSTNAME", "")
switch:
sudo nixos-rebuild switch
+# Build a NixOS configuration
+[no-cd]
+build hostname=HOSTNAME:
+ nixos-rebuild build --flake .#{{hostname}} --show-trace
+
# Build the ISO image
[no-cd]
build-iso: