feat(systemModules): add meta module
This commit is contained in:
parent
7a6f932740
commit
34ad7d3d61
3 changed files with 19 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
./security
|
./security
|
||||||
./services
|
./services
|
||||||
./audio
|
./audio
|
||||||
|
./meta
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
5
system/modules/meta/default.nix
Normal file
5
system/modules/meta/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./device
|
||||||
|
];
|
||||||
|
}
|
||||||
13
system/modules/meta/device/default.nix
Normal file
13
system/modules/meta/device/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) types mkOption;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
options.systemModules.meta.device.type = mkOption {
|
||||||
|
type = types.enum ["desktop" "server" "phone" "vm"];
|
||||||
|
default = "desktop";
|
||||||
|
description = "Meta option to describe what type of device the host is";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue