summaryrefslogtreecommitdiff
path: root/parts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-12-14 00:50:42 -0800
committerFuwn <[email protected]>2024-12-14 00:50:42 -0800
commit1c19b269369c0e765c47935143f7eafafe787da3 (patch)
tree25577b1be807a1bb5ac3c4b3cb170470516b348a /parts
parentnara: touch id support for sudo (diff)
downloadnixos-config-1c19b269369c0e765c47935143f7eafafe787da3.tar.xz
nixos-config-1c19b269369c0e765c47935143f7eafafe787da3.zip
just: move tasks to justfile
Diffstat (limited to 'parts')
-rw-r--r--parts/just.nix49
1 files changed, 0 insertions, 49 deletions
diff --git a/parts/just.nix b/parts/just.nix
deleted file mode 100644
index c7a78a7..0000000
--- a/parts/just.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- just-flake.features.default = {
- enable = true;
-
- justfile = ''
- action target action:
- git add . && rui --allow-unfree --allow-insecure {{target}} {{action}} -- --impure
-
- build target:
- just action {{target}} build
-
- switch target:
- just action {{target}} switch
-
- news user='ebisu':
- rui home news --user {{user}} -- --impure
-
- check:
- nix flake check
-
- fmt:
- treefmt
-
- push message:
- git add . && git commit -m "{{message}}" && git push origin main
-
- commit message:
- git add . && git commit -m "{{message}}"
-
- restore path='.':
- git restore --staged {{path}} && git restore {{path}}
-
- deploy hostname user='root' ip=hostname:
- git add . && nixos-rebuild \
- --flake .#{{hostname}} \
- --target-host {{user}}@{{ip}} \
- --use-remote-sudo \
- switch
-
- provision ip hostname:
- doas nix run github:nix-community/nixos-anywhere \
- -- \
- --flake .#{{hostname}} root@{{ip}}
-
- update:
- nix flake metadata --json | jq -r '.locks.nodes | keys[] | select(. != "nixpkgs")' | xargs -I{} nix flake update {}
- '';
- };
-}