1
0
forked from clan/clan-core

Merge pull request 'Added clanIcon' (#632) from Qubasa-main into main

This commit is contained in:
clan-bot 2023-12-08 18:04:15 +00:00
commit 003b5a77c6

View File

@ -3,6 +3,7 @@
, specialArgs ? { } # Extra arguments to pass to nixosSystem i.e. useful to make self available
, machines ? { } # allows to include machine-specific modules i.e. machines.${name} = { ... }
, clanName # Needs to be (globally) unique, as this determines the folder name where the flake gets downloaded to.
, clanIcon ? null # A path to an icon to be used for the clan
}:
let
machinesDirs = lib.optionalAttrs (builtins.pathExists "${directory}/machines") (builtins.readDir (directory + /machines));
@ -81,6 +82,8 @@ in
clanInternals = {
machines = configsPerSystem;
clanName = clanName;
clanIcon = clanIcon;
all-machines-json = lib.mapAttrs
(system: configs: nixpkgs.legacyPackages.${system}.writers.writeJSON "machines.json" (lib.mapAttrs (_: m: m.config.system.clan.deployment.data) configs))
configsPerSystem;