Merge pull request 'Changed clanIcon to be included into clanCore' (#633) from Qubasa-main into main
This commit is contained in:
@@ -43,6 +43,7 @@ let
|
|||||||
{
|
{
|
||||||
clanCore.machineName = name;
|
clanCore.machineName = name;
|
||||||
clanCore.clanName = clanName;
|
clanCore.clanName = clanName;
|
||||||
|
clanCore.clanIcon = clanIcon;
|
||||||
clanCore.clanDir = directory;
|
clanCore.clanDir = directory;
|
||||||
nixpkgs.hostPlatform = lib.mkForce system;
|
nixpkgs.hostPlatform = lib.mkForce system;
|
||||||
|
|
||||||
@@ -82,8 +83,6 @@ in
|
|||||||
|
|
||||||
clanInternals = {
|
clanInternals = {
|
||||||
machines = configsPerSystem;
|
machines = configsPerSystem;
|
||||||
clanName = clanName;
|
|
||||||
clanIcon = clanIcon;
|
|
||||||
all-machines-json = lib.mapAttrs
|
all-machines-json = lib.mapAttrs
|
||||||
(system: configs: nixpkgs.legacyPackages.${system}.writers.writeJSON "machines.json" (lib.mapAttrs (_: m: m.config.system.clan.deployment.data) configs))
|
(system: configs: nixpkgs.legacyPackages.${system}.writers.writeJSON "machines.json" (lib.mapAttrs (_: m: m.config.system.clan.deployment.data) configs))
|
||||||
configsPerSystem;
|
configsPerSystem;
|
||||||
|
|||||||
@@ -32,6 +32,12 @@
|
|||||||
the location of the flake repo, used to calculate the location of facts and secrets
|
the location of the flake repo, used to calculate the location of facts and secrets
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
clanIcon = lib.mkOption {
|
||||||
|
type = lib.types.path;
|
||||||
|
description = ''
|
||||||
|
the location of the clan icon
|
||||||
|
'';
|
||||||
|
};
|
||||||
machineName = lib.mkOption {
|
machineName = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = ''
|
description = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user