some refactoring
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.hardware.graphics.amd;
|
||||
cfg = config.systemModules.hardware.graphics.amd;
|
||||
in {
|
||||
options = {
|
||||
modules.hardware.graphics.amd.enable = mkEnableOption "Enables AMD graphics";
|
||||
systemModules.hardware.graphics.amd.enable = mkEnableOption "Enables AMD graphics";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
hardware = {
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
exec "$@"
|
||||
'';
|
||||
inherit (lib) types mkIf mkEnableOption mkOption;
|
||||
cfg = config.modules.hardware.graphics.nvidia;
|
||||
cfg = config.systemModules.hardware.graphics.nvidia;
|
||||
in {
|
||||
options = {
|
||||
modules.hardware.graphics.nvidia = {
|
||||
systemModules.hardware.graphics.nvidia = {
|
||||
enable = mkEnableOption "Enables NVidia graphics";
|
||||
package = mkOption {
|
||||
type = types.enum ["stable" "beta" "production" "latest"];
|
||||
|
||||
Reference in New Issue
Block a user