3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services/hardware
rnhmjoj 538312709e
nixos/tcsd: several improvements and fixes
- Actually run tcsd as tss/tss
- Install a udev rule to set /dev/tpm* permissions
- Remove systemd-udev-settle dependency, use dev-tpm0.device instead
- Use systemd-tmpfiles to set up the state directory
- Add documentation URI to tcsd.service

This module cannot be easily tested with a NixOS test due to the TPM
dependency. Technically, one could be emulated using swtpm[1], but this
is not packaged in Nixpkgs. If you computer has a real TPM you can do a
passthrough in Qemu, but this requires running the VM as root and of
course it's not determinstic:

    $ nix build -f nixos vm --arg configuration '
      {
        virtualisation.qemu.options = [
          "-tpmdev passthrough,id=tpm0,path=/dev/tpm0,cancel-path=/sys/class/tpm/tpm0/cancel"
          "-device tpm-tis,tpmdev=tpm0"
        ];
        users.users.root.hashedPassword = "";
        services.tcsd.enable = true;
      }'

After starting the VM, log in as root, you can check the service has
started with `systemctl status tcsd`.

[1]: https://github.com/stefanberger/swtpm
2021-02-28 19:54:19 +01:00
..
sane_extra_backends nixos/modules: stdenv.lib -> lib 2021-01-17 21:40:51 +01:00
acpid.nix
actkbd.nix
auto-cpufreq.nix nixos/auto-cpufreq: init module 2021-01-25 09:24:07 -05:00
bluetooth.nix nixos/bluetooth: fix more stupidity on my part 2021-02-18 14:54:19 +00:00
bolt.nix
brltty.nix
fancontrol.nix
freefall.nix
fwupd.nix
illum.nix
interception-tools.nix
irqbalance.nix
lcd.nix
lirc.nix
nvidia-optimus.nix
pcscd.nix
pommed.nix
power-profiles-daemon.nix power-profiles-daemon: init at 0.1, add service module 2021-02-09 01:25:56 +01:00
ratbagd.nix
sane.nix
spacenavd.nix nixos/spacenavd: init 2021-02-18 15:08:20 +01:00
tcsd.nix nixos/tcsd: several improvements and fixes 2021-02-28 19:54:19 +01:00
thermald.nix
thinkfan.nix nixos/thinkfan: rewrite for 1.2 update 2021-02-07 14:35:36 +01:00
throttled.nix
tlp.nix
trezord.nix trezord: don't trigger systemd-udev-settle 2021-02-27 12:35:04 +01:00
trezord.xml
triggerhappy.nix
udev.nix nixos/udev: add option to install rules in initrd 2021-02-19 09:26:13 +01:00
udisks2.nix
undervolt.nix
upower.nix
usbmuxd.nix
vdr.nix
xow.nix xow: fix service 2021-02-03 16:18:29 +02:00