Remove useless settings.json
This commit is contained in:
parent
3aa7a6ee69
commit
7f674e6f63
|
@ -91,6 +91,8 @@ in
|
||||||
type = lib.types.submodule {
|
type = lib.types.submodule {
|
||||||
options = {
|
options = {
|
||||||
inventory = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
|
inventory = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
|
||||||
|
inventoryFile = lib.mkOption { type = lib.types.unspecified; };
|
||||||
|
|
||||||
meta = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
|
meta = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
|
||||||
all-machines-json = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
|
all-machines-json = lib.mkOption { type = lib.types.attrsOf lib.types.unspecified; };
|
||||||
machines = lib.mkOption { type = lib.types.attrsOf (lib.types.attrsOf lib.types.unspecified); };
|
machines = lib.mkOption { type = lib.types.attrsOf (lib.types.attrsOf lib.types.unspecified); };
|
||||||
|
|
|
@ -188,7 +188,7 @@ builtins.deepSeq deprecationWarnings {
|
||||||
meta = mergedInventory.meta;
|
meta = mergedInventory.meta;
|
||||||
inventory = mergedInventory;
|
inventory = mergedInventory;
|
||||||
|
|
||||||
invFile = "${directory}/inventory.json";
|
inventoryFile = "${directory}/inventory.json";
|
||||||
|
|
||||||
# machine specifics
|
# machine specifics
|
||||||
machines = configsPerSystem;
|
machines = configsPerSystem;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ self, inputs, ... }:
|
{ self, ... }:
|
||||||
{
|
{
|
||||||
flake.templates = {
|
flake.templates = {
|
||||||
new-clan = {
|
new-clan = {
|
||||||
|
@ -15,25 +15,4 @@
|
||||||
path = ./minimal;
|
path = ./minimal;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
flake.checks.x86_64-linux.template-minimal =
|
|
||||||
let
|
|
||||||
path = self.templates.minimal.path;
|
|
||||||
initialized = inputs.nixpkgs.legacyPackages.x86_64-linux.runCommand "minimal-clan-flake" { } ''
|
|
||||||
mkdir $out
|
|
||||||
cp -r ${path}/* $out
|
|
||||||
mkdir -p $out/machines/foo
|
|
||||||
echo '{ "nixpkgs": { "hostPlatform": "x86_64-linux" } }' > $out/machines/foo/settings.json
|
|
||||||
'';
|
|
||||||
evaled = (import "${initialized}/flake.nix").outputs {
|
|
||||||
self = evaled // {
|
|
||||||
outPath = initialized;
|
|
||||||
};
|
|
||||||
clan-core = self;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
type = "derivation";
|
|
||||||
name = "minimal-clan-flake-check";
|
|
||||||
inherit (evaled.nixosConfigurations.foo.config.system.build.vm) drvPath outPath;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user