From c4c4ca974bc38dbc5f08a4d53c11860d4eb3c69b Mon Sep 17 00:00:00 2001 From: Peter Esselius Date: Wed, 4 Sep 2024 09:19:53 +0200 Subject: [PATCH] taskfile --- Taskfile.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index f9dda75..abe7928 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -2,7 +2,13 @@ version: "3" tasks: update: - cmd: nix flake update + cmds: + - nix flake update + - task: nixos-rebuild + vars: + command: build + host: adama + - cachix push esselius ./result darwin:build: requires: @@ -11,7 +17,7 @@ tasks: cmd: nix build .#darwinConfigurations.{{.host}}.config.system.build.toplevel --no-link -Lv darwin:switch: - cmd: darwin-rebuild switch --flake . + cmd: darwin-rebuild switch --flake . {{.CLI_ARGS}} home:build: requires: @@ -23,6 +29,13 @@ tasks: home:switch: cmd: home-manager switch --flake . + nixos-rebuild: + requires: + vars: + - command + - host + cmd: nixos-rebuild {{.command}} --flake .#{{.host}} {{.args}} + nixos:build: requires: vars: @@ -33,7 +46,11 @@ tasks: requires: vars: - host - cmd: nixos-rebuild switch --flake .#{{.host}} --target-host {{.host}} --fast --use-remote-sudo {{.CLI_ARGS}} + cmd: + task: nixos-rebuild + vars: + command: switch + args: --fast --use-remote-sudo --target-host {{.host}} {{.CLI_ARGS}} fmt: cmds: