mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
6afb255d97
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.hardware.tuxedo-rs;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
hardware.tuxedo-rs = {
|
|
enable = mkEnableOption "Rust utilities for interacting with hardware from TUXEDO Computers";
|
|
|
|
tailor-gui.enable = mkEnableOption "tailor-gui, an alternative to TUXEDO Control Center, written in Rust";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable (mkMerge [
|
|
{
|
|
hardware.tuxedo-keyboard.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 ];
|
|
}
|
|
(mkIf cfg.tailor-gui.enable {
|
|
environment.systemPackages = [ pkgs.tailor-gui ];
|
|
})
|
|
]);
|
|
|
|
meta.maintainers = with maintainers; [ mrcjkb ];
|
|
}
|