mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -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
|
@just --list
|
||||||
|
|
||||||
# Output what derivations will be built
|
# Output what derivations will be built
|
||||||
test TYPE="nixos" SYSTEM="desktop":
|
test TYPE="nix" SYSTEM="desktop":
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
case "{{TYPE}}" in
|
case "{{TYPE}}" in
|
||||||
"nixos")
|
"nix")
|
||||||
if [ "{{SYSTEM}}" = "desktop" ] || [ "{{SYSTEM}}" = "server" ] || [ "{{SYSTEM}}" = "wsl" ] || [ "{{SYSTEM}}" = "laptop" ]; then
|
if [ "{{SYSTEM}}" = "desktop" ] || [ "{{SYSTEM}}" = "server" ] || [ "{{SYSTEM}}" = "wsl" ] || [ "{{SYSTEM}}" = "laptop" ]; then
|
||||||
echo "Testing NixOS configuration for {{SYSTEM}}..."
|
echo "Testing NixOS configuration for {{SYSTEM}}..."
|
||||||
nix build --dry-run .#nixosConfigurations."{{SYSTEM}}".config.system.build.toplevel -L
|
nix build --dry-run .#nixosConfigurations."{{SYSTEM}}".config.system.build.toplevel -L
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue