Unverified Commit 3e014434 authored by Lily Foster's avatar Lily Foster Committed by GitHub
Browse files

Merge pull request #230876 from purin-aurelia/nixos-openrgb-fix

nixos/openrgb: fix data dir & amd i2c
parents 83b568ea 95951134
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -34,14 +34,15 @@ in {
    services.udev.packages = [ cfg.package ];

    boot.kernelModules = [ "i2c-dev" ]
     ++ lib.optionals (cfg.motherboard == "amd") [ "i2c-piix" ]
     ++ lib.optionals (cfg.motherboard == "amd") [ "i2c-piix4" ]
     ++ lib.optionals (cfg.motherboard == "intel") [ "i2c-i801" ];

    systemd.services.openrgb = {
      description = "OpenRGB server daemon";
      wantedBy = [ "multi-user.target" ];

      serviceConfig = {
        StateDirectory = "OpenRGB";
        WorkingDirectory = "/var/lib/OpenRGB";
        ExecStart = "${cfg.package}/bin/openrgb --server --server-port ${toString cfg.server.port}";
        Restart = "always";
      };