pipeline-testing-improvements #9

Merged
torjus merged 7 commits from pipeline-testing-improvements into master 2026-02-01 16:45:04 +00:00
3 changed files with 8 additions and 9 deletions
Showing only changes of commit 9908286062 - Show all commits

View File

@@ -334,7 +334,6 @@
sops-nix.nixosModules.sops
];
};
};
testvm01 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
@@ -351,6 +350,7 @@
sops-nix.nixosModules.sops
];
};
};
packages = forAllSystems (
{ pkgs }:
{

View File

@@ -50,17 +50,17 @@ def update_flake_nix(config: HostConfig, repo_root: Path, force: bool = False) -
if count == 0:
raise ValueError(f"Could not find existing entry for {config.hostname} in flake.nix")
else:
# Insert new entry before closing brace
# Pattern: " };\n packages ="
pattern = r"( \};)\n( packages =)"
replacement = rf"\g<1>\n{new_entry}\g<2>"
# Insert new entry before closing brace of nixosConfigurations
# Pattern: " };\n packages = forAllSystems"
pattern = r"( \};)\n( packages = forAllSystems)"
replacement = rf"{new_entry}\g<1>\n\g<2>"
new_content, count = re.subn(pattern, replacement, content)
if count == 0:
raise ValueError(
"Could not find insertion point in flake.nix. "
"Looking for pattern: ' };\\n packages ='"
"Looking for pattern: ' };\\n packages = forAllSystems'"
)
flake_path.write_text(new_content)

View File

@@ -7,16 +7,15 @@
{
imports = [
../template/hardware-configuration.nix
../template2/hardware-configuration.nix
../../system
../../common/vm
];
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.device = "/dev/vda";
networking.hostName = "{{ hostname }}";
networking.domain = "{{ domain }}";