add flake-parts module for clan

This commit is contained in:
Jörg Thalheim
2024-04-03 13:46:17 +02:00
parent 3ad6d6b15e
commit 73321e230a
6 changed files with 107 additions and 54 deletions

View File

@@ -1,17 +1,11 @@
{ self, ... }:
{
flake.clanInternals =
(self.lib.buildClan {
clanName = "testclan";
directory = ../..;
machines.test-backup = {
imports = [ self.nixosModules.test-backup ];
fileSystems."/".device = "/dev/null";
boot.loader.grub.device = "/dev/null";
};
}).clanInternals;
clan.machines.test-backup = {
imports = [ self.nixosModules.test-backup ];
fileSystems."/".device = "/dev/null";
boot.loader.grub.device = "/dev/null";
};
flake.nixosModules = {
test-backup =
{
pkgs,
@@ -75,7 +69,6 @@
};
};
clanCore.facts.secretStore = "vm";
clanCore.clanDir = ../..;
environment.systemPackages = [
self.packages.${pkgs.system}.clan-cli