From 84ec4f679c44dc38fe2ce78038d10546e1a987e4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 5 Oct 2024 15:25:22 -0700 Subject: just: reformat --- flake.nix | 62 ++++++++++++++++++++++++++++++-------------------------------- justfile | 2 -- 2 files changed, 30 insertions(+), 34 deletions(-) diff --git a/flake.nix b/flake.nix index fa4d1ce..1242c6c 100644 --- a/flake.nix +++ b/flake.nix @@ -66,48 +66,46 @@ packages.default = home-manager.defaultPackage."${system}"; formatter = pkgs.nixfmt-rfc-style; - just-flake.features = { - default = { - enable = true; + just-flake.features.default = { + enable = true; - justfile = '' - action target action: - git add . && nix develop --command rui --allow-unfree --allow-insecure {{target}} {{action}} -- --impure + justfile = '' + action target action: + git add . && nix develop --command rui --allow-unfree --allow-insecure {{target}} {{action}} -- --impure - build target: - just action {{target}} build + build target: + just action {{target}} build - switch target: - just action {{target}} switch + switch target: + just action {{target}} switch - news user='ebisu': - rui home news --user {{user}} -- --impure + news user='ebisu': + rui home news --user {{user}} -- --impure - check: - nix develop --command nix flake check + check: + nix develop --command nix flake check - push message: - git add . && git commit -m "{{message}}" && git push origin main + push message: + git add . && git commit -m "{{message}}" && git push origin main - commit message: - git add . && git commit -m "{{message}}" + commit message: + git add . && git commit -m "{{message}}" - restore: - git restore --staged . && git restore . + restore: + git restore --staged . && git restore . - deploy hostname user='root': - git add . && nixos-rebuild \ - --flake .#{{hostname}} \ - --target-host {{user}}@{{hostname}} \ - --use-remote-sudo \ - switch + deploy hostname user='root': + git add . && nixos-rebuild \ + --flake .#{{hostname}} \ + --target-host {{user}}@{{hostname}} \ + --use-remote-sudo \ + switch - provision ip hostname: - doas nix run github:nix-community/nixos-anywhere \ - -- \ - --flake .#{{hostname}} root@{{ip}} - ''; - }; + provision ip hostname: + doas nix run github:nix-community/nixos-anywhere \ + -- \ + --flake .#{{hostname}} root@{{ip}} + ''; }; checks.pre-commit-check = pre-commit-hooks.lib.${system}.run { diff --git a/justfile b/justfile index 80c4fae..4f2f3c3 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,4 @@ -# See flake.nix (just-flake) import 'just-flake.just' -# Display the list of recipes default: @just --list -- cgit v1.2.3