Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.hardware.tuxedo-rs;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
hardware.tuxedo-rs = {
|
|
enable = lib.mkEnableOption "Rust utilities for interacting with hardware from TUXEDO Computers";
|
|
|
|
tailor-gui.enable = lib.mkEnableOption "tailor-gui, an alternative to TUXEDO Control Center, written in Rust";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable (
|
|
lib.mkMerge [
|
|
{
|
|
hardware.tuxedo-drivers.enable = true;
|
|
|
|
systemd = {
|
|
services.tailord = {
|
|
enable = true;
|
|
description = "Tuxedo Tailor hardware control service";
|
|
after = [ "systemd-logind.service" ];
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
Type = "dbus";
|
|
BusName = "com.tux.Tailor";
|
|
ExecStart = "${pkgs.tuxedo-rs}/bin/tailord";
|
|
Environment = "RUST_BACKTRACE=1";
|
|
Restart = "on-failure";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.dbus.packages = [ pkgs.tuxedo-rs ];
|
|
|
|
environment.systemPackages = [ pkgs.tuxedo-rs ];
|
|
}
|
|
(lib.mkIf cfg.tailor-gui.enable {
|
|
environment.systemPackages = [ pkgs.tailor-gui ];
|
|
})
|
|
]
|
|
);
|
|
|
|
meta.maintainers = with lib.maintainers; [ mrcjkb ];
|
|
}
|