refactor: separate NixOS and Home-Manager configuration

This commit is contained in:
Yorick Barbanneau 2024-10-09 00:37:47 +02:00
parent 9edca93fd5
commit d446f84030
5 changed files with 75 additions and 127 deletions

View file

@ -17,19 +17,19 @@ tasks:
sources:
- "**/*.nix"
build:*:
nixos:build:*:
vars:
TARGET: "{{index .MATCH 0}}"
cmds:
- nixos-rebuild --flake .#{{.TARGET}} build
switch:*:
nixos:switch:*:
vars:
TARGET: "{{index .MATCH 0}}"
cmds:
- doas nixos-rebuild --flake .#{{.TARGET}} switch
test:*:
nixos:test:*:
vars:
TARGET: "{{index .MATCH 0}}"
cmds:
@ -41,12 +41,6 @@ tasks:
cmds:
- home-manager build --flake .#{{.TARGET}}
home:test:*:
vars:
TARGET: "{{index .MATCH 0}}"
cmds:
- home-manager test --flake .#{{.TARGET}}
home:switch:*:
vars:
TARGET: "{{index .MATCH 0}}"