From 7b79203f54853733d4fae88943829d0e24e6e49f Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 7 Jan 2024 12:00:08 -0500 Subject: massive overhaul --- modules/device.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/device.nix (limited to 'modules/device.nix') diff --git a/modules/device.nix b/modules/device.nix new file mode 100644 index 0000000..acf9eb5 --- /dev/null +++ b/modules/device.nix @@ -0,0 +1,16 @@ +{ + config, + options, + lib, + ... +}: { + options.modules.device = { + name = lib.mkOption {type = lib.types.str;}; + cpu = lib.mkOption {type = lib.types.enum ["intel"];}; + gpu = lib.mkOption {type = lib.types.enum ["intel" "nvidia"];}; + drive = lib.mkOption {type = lib.types.enum ["ssd" "nvme"];}; + + hasBluetooth = lib.mkOption {type = lib.types.bool;}; + displayProtocol = lib.mkOption {type = lib.types.enum ["xserver" "wayland"];}; + }; +} -- cgit v1.2.1