mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
justfile test recipe: nixos -> nix
This commit is contained in:
parent
7ba9dc50e7
commit
9f5e4e75b6
1 changed files with 2 additions and 2 deletions
4
justfile
4
justfile
|
|
@ -2,11 +2,11 @@ default:
|
|||
@just --list
|
||||
|
||||
# Output what derivations will be built
|
||||
test TYPE="nixos" SYSTEM="desktop":
|
||||
test TYPE="nix" SYSTEM="desktop":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
case "{{TYPE}}" in
|
||||
"nixos")
|
||||
"nix")
|
||||
if [ "{{SYSTEM}}" = "desktop" ] || [ "{{SYSTEM}}" = "server" ] || [ "{{SYSTEM}}" = "wsl" ] || [ "{{SYSTEM}}" = "laptop" ]; then
|
||||
echo "Testing NixOS configuration for {{SYSTEM}}..."
|
||||
nix build --dry-run .#nixosConfigurations."{{SYSTEM}}".config.system.build.toplevel -L
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue