Skip to content

Commit

Permalink
dump taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Sep 4, 2024
1 parent 6af5a5e commit 90508d7
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 90508d7

Please sign in to comment.