Clan-core: Rename clanName within Machines
This commit is contained in:
@@ -1,11 +1,33 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
(lib.mkRemovedOptionModule [
|
||||
"clan"
|
||||
"core"
|
||||
"clanName"
|
||||
] "clanName has been removed. Use clan.core.name instead.")
|
||||
(lib.mkRemovedOptionModule [
|
||||
"clan"
|
||||
"core"
|
||||
"clanIcon"
|
||||
] "clanIcon has been removed. Use clan.core.icon instead.")
|
||||
];
|
||||
options.clan.core = {
|
||||
clanName = lib.mkOption {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = ''
|
||||
the name of the clan
|
||||
'';
|
||||
# Set by the flake, so it's read-only in the maschine
|
||||
readOnly = true;
|
||||
};
|
||||
icon = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
description = ''
|
||||
the location of the clan icon
|
||||
'';
|
||||
# Set by the flake, so it's read-only in the maschine
|
||||
readOnly = true;
|
||||
};
|
||||
machineIcon = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
@@ -28,12 +50,6 @@
|
||||
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;
|
||||
default = "nixos";
|
||||
|
||||
Reference in New Issue
Block a user