8 cfg = config.hardware.tuxedo-rs;
13 hardware.tuxedo-rs = {
14 enable = lib.mkEnableOption "Rust utilities for interacting with hardware from TUXEDO Computers";
16 tailor-gui.enable = lib.mkEnableOption "tailor-gui, an alternative to TUXEDO Control Center, written in Rust";
20 config = lib.mkIf cfg.enable (
23 hardware.tuxedo-drivers.enable = true;
28 description = "Tuxedo Tailor hardware control service";
29 after = [ "systemd-logind.service" ];
30 wantedBy = [ "multi-user.target" ];
34 BusName = "com.tux.Tailor";
35 ExecStart = "${pkgs.tuxedo-rs}/bin/tailord";
36 Environment = "RUST_BACKTRACE=1";
37 Restart = "on-failure";
42 services.dbus.packages = [ pkgs.tuxedo-rs ];
44 environment.systemPackages = [ pkgs.tuxedo-rs ];
46 (lib.mkIf cfg.tailor-gui.enable {
47 environment.systemPackages = [ pkgs.tailor-gui ];
52 meta.maintainers = with lib.maintainers; [ mrcjkb ];