nixos/tpm2: define group, fix after NixOS#133166

This commit is contained in:
Austin Butler 2021-09-19 12:40:54 -07:00
parent 1ae90c5118
commit 8b6fa3c821

View file

@ -146,6 +146,7 @@ in {
# Create the tss user and group only if the default value is used
users.users.${cfg.tssUser} = lib.mkIf (cfg.tssUser == "tss") {
isSystemUser = true;
group = "tss";
};
users.groups.${cfg.tssGroup} = lib.mkIf (cfg.tssGroup == "tss") {};
@ -172,7 +173,7 @@ in {
BusName = "com.intel.tss2.Tabrmd";
ExecStart = "${cfg.abrmd.package}/bin/tpm2-abrmd";
User = "tss";
Group = "nogroup";
Group = "tss";
};
};