clanCore: refactor flake-module.nix into smaller files

This commit is contained in:
Jörg Thalheim
2023-12-15 13:14:55 +01:00
parent f168a9282d
commit a1a8486be8
8 changed files with 144 additions and 129 deletions

View File

@@ -0,0 +1,32 @@
{ lib, pkgs, ... }: {
options.clanCore = {
clanName = lib.mkOption {
type = lib.types.str;
description = ''
the name of the clan
'';
};
clanDir = lib.mkOption {
type = lib.types.either lib.types.path lib.types.str;
description = ''
the location of the flake repo, used to calculate the location of facts and secrets
'';
};
clanIcon = lib.mkOption {
type = lib.types.nullOr lib.types.path;
description = ''
the location of the clan icon
'';
};
machineName = lib.mkOption {
type = lib.types.str;
description = ''
the name of the machine
'';
};
clanPkgs = lib.mkOption {
defaultText = "self.packages.${pkgs.system}";
internal = true;
};
};
}