Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

NixOS and Home Manager

Every setting can be set declaratively with programs.rustyfunplayer.settings, in both the NixOS and the Home Manager module. Keys and values are the same as in settings.json.

programs.rustyfunplayer = {
  enable = true;
  settings = {
    language = "system";
    orientation = "horizontal";
    logging.level = "info";
    updates.check_on_startup = false;
    per_integration_device_range = true;
    interface = { style = "modern"; tray = true; modern = { seed = "#0061a4"; dark = true; }; };
    vlc = { visible = true; endpoint = "127.0.0.1:8080"; };
    fapland = { visible = true; auto_connect = true; };
    funlink = { sound = true; notify = true; };
    inputs.tcode_network.enabled = true;
  };
};
  • NixOS: system-wide profile. Home Manager: per user. Set package = null; in Home Manager if NixOS already installs the app.
  • Rebuild (nixos-rebuild switch / home-manager switch), then restart RustyFunPlayer.
  • Omitted keys use defaults. Changes made in the app last only for the session.
  • With both modules, the Home Manager profile wins as a whole; the NixOS profile is then ignored, not merged. If you set XDG_CONFIG_DIRS yourself, include /etc/xdg or the NixOS profile is not found.
  • Convert an existing profile: builtins.removeAttrs (builtins.fromJSON (builtins.readFile ./settings.json)) [ "schema" ].
  • settings = null; removes the managed profile.

Secrets: Never put passwords, API keys or Handy keys in Nix; the Nix store is readable by every local user. Enter them in the app; they go to the Secret Service.

Module options

OptionWhat it does
enableInstall the app.
settingsDeclarative profile (above).
serialUsersNixOS: users added to dialout for serial access.
serialSeatAccessNixOS: give USB serial devices to the logged-in desktop user.
usbSerialGadgetNixOS: create the virtual USB serial device at boot.
gameDetection.service.enableDetect games and OFS while the app is closed.
withMpv, withChromium, withPluginHostLeave out bundled mpv, Chromium or the C# plugin host to shrink the closure.
stylix.enableUse the Stylix theme (on when Stylix is enabled).

Useful keys

KeyExample
Show a sourcedeovr = { visible = true; endpoint = "192.168.1.20:23554"; };
Extra source of a kindsource_instances.vlc."1".endpoint = "192.168.1.20:8080";
Source names, ordersource_names.vlc = "Desktop VLC"; source_order = [ "vlc" "fapland" ];
Launch commandsource_launch.ofs.command = "'/opt/OpenFunScripter.AppImage'";
Output orderoutput_order = [ { kind = "serial"; index = 0; } ];
Inputsinputs.intiface_relay = { enabled = true; port = 12345; axes = [ "L0" "V0" ]; };
FapTapfaptap_repository = { enabled = true; axis = "L0"; };
EDI portedi.port = 5000;
IVEive.enabled = false;
mpv / browsermpv_executable = "/run/current-system/sw/bin/mpv"; web.executable = "…/chromium";
MCPmcp_enabled = false;

For VLC, the default launch command and custom commands that use %password% pass the password on the command line. Other local users may be able to read it. Set source_launch.vlc.enabled = false; and follow the VLC setup guide to start VLC yourself and use the tile to connect.