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_DIRSyourself, include/etc/xdgor 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
| Option | What it does |
|---|---|
enable | Install the app. |
settings | Declarative profile (above). |
serialUsers | NixOS: users added to dialout for serial access. |
serialSeatAccess | NixOS: give USB serial devices to the logged-in desktop user. |
usbSerialGadget | NixOS: create the virtual USB serial device at boot. |
gameDetection.service.enable | Detect games and OFS while the app is closed. |
withMpv, withChromium, withPluginHost | Leave out bundled mpv, Chromium or the C# plugin host to shrink the closure. |
stylix.enable | Use the Stylix theme (on when Stylix is enabled). |
Useful keys
| Key | Example |
|---|---|
| Show a source | deovr = { visible = true; endpoint = "192.168.1.20:23554"; }; |
| Extra source of a kind | source_instances.vlc."1".endpoint = "192.168.1.20:8080"; |
| Source names, order | source_names.vlc = "Desktop VLC"; source_order = [ "vlc" "fapland" ]; |
| Launch command | source_launch.ofs.command = "'/opt/OpenFunScripter.AppImage'"; |
| Output order | output_order = [ { kind = "serial"; index = 0; } ]; |
| Inputs | inputs.intiface_relay = { enabled = true; port = 12345; axes = [ "L0" "V0" ]; }; |
| FapTap | faptap_repository = { enabled = true; axis = "L0"; }; |
| EDI port | edi.port = 5000; |
| IVE | ive.enabled = false; |
| mpv / browser | mpv_executable = "/run/current-system/sw/bin/mpv"; web.executable = "…/chromium"; |
| MCP | mcp_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.