mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-10 05:44:38 -05:00
feat: changed config module names
This commit is contained in:
parent
95346caae6
commit
7a6685cbc2
34 changed files with 123 additions and 123 deletions
|
@ -34,7 +34,7 @@ in let
|
|||
]
|
||||
)
|
||||
// {
|
||||
user = lib.mkOption {
|
||||
users = lib.mkOption {
|
||||
type = lib.types.attrsOf userSubmodule;
|
||||
};
|
||||
};
|
||||
|
@ -79,7 +79,7 @@ in let
|
|||
"writefreely"
|
||||
])
|
||||
// {
|
||||
instance = lib.mkOption {
|
||||
instances = lib.mkOption {
|
||||
type = lib.types.attrsOf instanceSubmodule;
|
||||
};
|
||||
};
|
||||
|
@ -102,7 +102,7 @@ in let
|
|||
};
|
||||
};
|
||||
};
|
||||
systemSubmodule = lib.types.submodule {
|
||||
machineSubmodule = lib.types.submodule {
|
||||
options =
|
||||
builtins.listToAttrs (map (name: {
|
||||
inherit name;
|
||||
|
@ -119,7 +119,7 @@ in let
|
|||
"tablet"
|
||||
])
|
||||
// {
|
||||
device = lib.mkOption {
|
||||
devices = lib.mkOption {
|
||||
type = lib.types.attrsOf deviceSubmodule;
|
||||
};
|
||||
};
|
||||
|
@ -146,11 +146,11 @@ in let
|
|||
};
|
||||
in {
|
||||
options = {
|
||||
service = lib.mkOption {
|
||||
services = lib.mkOption {
|
||||
type = serviceSubmodule;
|
||||
};
|
||||
system = lib.mkOption {
|
||||
type = systemSubmodule;
|
||||
machines = lib.mkOption {
|
||||
type = machineSubmodule;
|
||||
};
|
||||
people = lib.mkOption {
|
||||
type = peopleSubmodule;
|
||||
|
@ -158,8 +158,8 @@ in {
|
|||
};
|
||||
|
||||
config = {
|
||||
people = import ./user.nix;
|
||||
service = import ./instance.nix;
|
||||
system = import ./device.nix;
|
||||
people = import ./users.nix;
|
||||
services = import ./instances.nix;
|
||||
machines = import ./devices.nix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue