feat(global/just): add test flake rebuild

This commit is contained in:
madmin 2024-08-07 22:19:31 +02:00
parent 178b0ece78
commit f0a40fe87a
2 changed files with 4 additions and 23 deletions

View File

@ -25,6 +25,10 @@ rebuild-post:
rebuild: rebuild-pre rebuild: rebuild-pre
scripts/system-flake-rebuild.sh scripts/system-flake-rebuild.sh
# Rebuild for tests config without adding to bootloader
rebuild-test: rebuild-pre
scripts/system-flake-test-rebuild.sh
# Requires sops to be running and you must have reboot after initial rebuild # Requires sops to be running and you must have reboot after initial rebuild
rebuild-full: rebuild-pre && rebuild-post rebuild-full: rebuild-pre && rebuild-post
scripts/system-flake-rebuild.sh scripts/system-flake-rebuild.sh

View File

@ -1,23 +0,0 @@
{ lib, ... }:
{
# use path relative to the root of the project
relativeToRoot = lib.path.append ../.;
scanPaths = path:
builtins.map
(f: (path + "/${f}"))
(builtins.attrNames
(lib.attrsets.filterAttrs
(
path: _type:
(_type == "directory") # include directories
|| (
# FIXME this barfs when child directories don't contain a default.nix
# example:
# error: getting status of '/nix/store/mx31x8530b758ap48vbg20qzcakrbc8 (see hosts/common/core/services/default.nix)a-source/hosts/common/core/services/default.nix': No such file or directory
# I created a blank default.nix in hosts/common/core/services to work around
(path != "default.nix") # ignore default.nix
&& (lib.strings.hasSuffix ".nix" path) # include .nix files
)
)
(builtins.readDir path)));
}