Merge pull request #205119 from K900/supergfxd-fixup

supergfxd: fix config format

K900 4353ba58 286fb727

Changed files
+3 -3
nixos
modules
services
hardware
+3 -3
nixos/modules/services/hardware/supergfxd.nix
···
let
cfg = config.services.supergfxd;
-
ini = pkgs.formats.ini { };
+
json = pkgs.formats.json { };
in
{
options = {
···
enable = lib.mkEnableOption (lib.mdDoc "Enable the supergfxd service");
settings = lib.mkOption {
-
type = lib.types.nullOr ini.type;
+
type = lib.types.nullOr json.type;
default = null;
description = lib.mdDoc ''
The content of /etc/supergfxd.conf.
···
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.supergfxctl ];
-
environment.etc."supergfxd.conf" = lib.mkIf (cfg.settings != null) (ini.generate "supergfxd.conf" cfg.settings);
+
environment.etc."supergfxd.conf".source = lib.mkIf (cfg.settings != null) (json.generate "supergfxd.conf" cfg.settings);
services.dbus.enable = true;