From e51a63d6bf7e6bbc4850c33646a0fdb0fd856ba0 Mon Sep 17 00:00:00 2001 From: Brenton Simpson Date: Tue, 26 Nov 2024 13:41:37 -0800 Subject: [PATCH] modules/devices: add scaffolding for Legion Go --- modules/devices/default.nix | 1 + modules/devices/legiongo/default.nix | 35 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 modules/devices/legiongo/default.nix diff --git a/modules/devices/default.nix b/modules/devices/default.nix index 4ba82bd4..09ea9396 100644 --- a/modules/devices/default.nix +++ b/modules/devices/default.nix @@ -1,5 +1,6 @@ { imports = [ + ./legiongo ./steamdeck ]; } diff --git a/modules/devices/legiongo/default.nix b/modules/devices/legiongo/default.nix new file mode 100644 index 00000000..9929d92d --- /dev/null +++ b/modules/devices/legiongo/default.nix @@ -0,0 +1,35 @@ +# Legion Go-specific configurations +# +# jovian.devices.legiongo + +{ config, lib, ... }: + +let + inherit (lib) + mkIf + mkOption + types + ; + cfg = config.jovian.devices.legiongo; +in +{ + imports = [ + ]; + + options = { + jovian.devices.legiongo = { + enable = mkOption { + type = types.bool; + default = false; + description = '' + Whether to enable Legion Go-specific configurations. + ''; + }; + }; + }; + config = mkIf cfg.enable { + jovian.hardware.has = { + amd.gpu = true; + }; + }; +}