aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-09 15:25:25 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-09 15:25:25 -0800
commite4e769a7adaaa287cba1de8f04f04367c8c16d84 (patch)
tree30b202919328f3a93a18a7f6721b14017689a934 /justfile
parentfix configuration for work MBP (diff)
downloadinfra-e4e769a7adaaa287cba1de8f04f04367c8c16d84.tar.gz
fix misconfiguration of the bootloader
Diffstat (limited to 'justfile')
-rw-r--r--justfile10
1 files changed, 7 insertions, 3 deletions
diff --git a/justfile b/justfile
index 992a107..6dea92f 100644
--- a/justfile
+++ b/justfile
@@ -5,17 +5,19 @@ nixaddr := ""
hostname := lowercase(`hostname -s`)
-# update dependencies
[group('nix')]
+[doc('update dependencies')]
update-deps:
nix flake update --commit-lock-file
-# a simple check to ensure the nix configuration is OK
+[group('nix')]
+[doc('a simple check to ensure the nix configuration is OK')]
test-nix:
nix flake check
nix develop -c echo OK
-# run various formatting tools
+[group('nix')]
+[doc('run various formatting tools')]
fmt:
nix fmt
@@ -39,6 +41,7 @@ build:
switch:
nixos-rebuild switch --flake .#{{hostname}}
+[group('vm')]
vm-bootstrap:
#!/usr/bin/env bash
set -euxo pipefail
@@ -65,6 +68,7 @@ vm-bootstrap:
nixos-install --no-root-passwd && reboot; \
"
+[group('vm')]
vm-copy:
#!/usr/bin/env bash
rsync -av -e 'ssh {{SSH_OPTIONS}}' \