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; + }; + }; +}