mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
meta/domain: Rename list options
This commit is contained in:
parent
1860dcd338
commit
250e2ea3d0
21 changed files with 25 additions and 25 deletions
|
|
@ -10,16 +10,16 @@ let
|
|||
in
|
||||
{
|
||||
options.meta.domains = {
|
||||
list = lib.mkOption {
|
||||
local = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.nonEmptyStr;
|
||||
default = [ ];
|
||||
};
|
||||
globalList = lib.mkOption {
|
||||
global = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.nonEmptyStr;
|
||||
default =
|
||||
self.nixosConfigurations
|
||||
|> lib.attrValues
|
||||
|> lib.map (value: value.config.meta.domains.list)
|
||||
|> lib.map (value: value.config.meta.domains.local)
|
||||
|> lib.concatLists;
|
||||
readOnly = true;
|
||||
};
|
||||
|
|
@ -32,7 +32,7 @@ in
|
|||
duplicateDomains =
|
||||
self.nixosConfigurations
|
||||
|> lib.attrValues
|
||||
|> lib.map (value: value.options.meta.domains.list.definitionsWithLocations)
|
||||
|> lib.map (value: value.options.meta.domains.local.definitionsWithLocations)
|
||||
|> lib.concatLists
|
||||
|> lib.concatMap (
|
||||
{ file, value }:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue