refactor: separate NixOS and Home-Manager configuration
This commit is contained in:
parent
9edca93fd5
commit
d446f84030
5 changed files with 75 additions and 127 deletions
|
@ -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}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue