Loading nixos/modules/hardware/facter/default.nix +13 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,19 @@ meta.maintainers = with lib.maintainers; [ mic92 ]; options.hardware.facter = with lib; { enable = mkOption { type = types.bool; default = config.hardware.facter.report != { }; defaultText = literalExpression '' config.hardware.facter.report != { } ''; description = '' Whether to enable automatic hardware configuration using a report generated by nixos-facter. See <https://nix-community.github.io/nixos-facter/> for more information. ''; }; report = mkOption { type = types.attrsOf types.anything; default = Loading nixos/modules/hardware/facter/disk.nix +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ in ''; }; config = lib.mkIf (config.hardware.facter.reportPath != null) { config = lib.mkIf config.hardware.facter.enable { boot.initrd.availableKernelModules = config.hardware.facter.detected.boot.disk.kernelModules; }; } nixos/modules/hardware/facter/firmware.nix +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ let hasIntelCpu = facterLib.hasIntelCpu report; in { config = lib.mkIf (config.hardware.facter.reportPath != null && isBaremetal) { config = lib.mkIf (config.hardware.facter.enable && isBaremetal) { # none (e.g. bare-metal) # provide firmware for devices that might not have been detected by nixos-facter hardware.enableRedistributableFirmware = lib.mkDefault true; Loading nixos/modules/hardware/facter/graphics/amd.nix +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ in defaultText = "hardware dependent"; }; }; config = lib.mkIf (config.hardware.facter.reportPath != null && cfg.enable) { config = lib.mkIf (config.hardware.facter.enable && cfg.enable) { services.xserver.videoDrivers = [ "modesetting" ]; }; } nixos/modules/hardware/facter/graphics/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ in }; }; config = lib.mkIf (config.hardware.facter.reportPath != null && cfg.enable) ( config = lib.mkIf (config.hardware.facter.enable && cfg.enable) ( { boot.initrd.kernelModules = config.hardware.facter.detected.boot.graphics.kernelModules; } Loading Loading
nixos/modules/hardware/facter/default.nix +13 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,19 @@ meta.maintainers = with lib.maintainers; [ mic92 ]; options.hardware.facter = with lib; { enable = mkOption { type = types.bool; default = config.hardware.facter.report != { }; defaultText = literalExpression '' config.hardware.facter.report != { } ''; description = '' Whether to enable automatic hardware configuration using a report generated by nixos-facter. See <https://nix-community.github.io/nixos-facter/> for more information. ''; }; report = mkOption { type = types.attrsOf types.anything; default = Loading
nixos/modules/hardware/facter/disk.nix +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ in ''; }; config = lib.mkIf (config.hardware.facter.reportPath != null) { config = lib.mkIf config.hardware.facter.enable { boot.initrd.availableKernelModules = config.hardware.facter.detected.boot.disk.kernelModules; }; }
nixos/modules/hardware/facter/firmware.nix +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ let hasIntelCpu = facterLib.hasIntelCpu report; in { config = lib.mkIf (config.hardware.facter.reportPath != null && isBaremetal) { config = lib.mkIf (config.hardware.facter.enable && isBaremetal) { # none (e.g. bare-metal) # provide firmware for devices that might not have been detected by nixos-facter hardware.enableRedistributableFirmware = lib.mkDefault true; Loading
nixos/modules/hardware/facter/graphics/amd.nix +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ in defaultText = "hardware dependent"; }; }; config = lib.mkIf (config.hardware.facter.reportPath != null && cfg.enable) { config = lib.mkIf (config.hardware.facter.enable && cfg.enable) { services.xserver.videoDrivers = [ "modesetting" ]; }; }
nixos/modules/hardware/facter/graphics/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ in }; }; config = lib.mkIf (config.hardware.facter.reportPath != null && cfg.enable) ( config = lib.mkIf (config.hardware.facter.enable && cfg.enable) ( { boot.initrd.kernelModules = config.hardware.facter.detected.boot.graphics.kernelModules; } Loading