From 2088afb79d6e52c75d87d6ea6aab0e2a34afc9e7 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Fri, 8 Dec 2023 19:01:11 +0100 Subject: [PATCH] Added clanIcon --- lib/build-clan/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/build-clan/default.nix b/lib/build-clan/default.nix index 45bd4a249..a743c390c 100644 --- a/lib/build-clan/default.nix +++ b/lib/build-clan/default.nix @@ -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;