module nitrokey: drop option group

Since the update of the nitrokey-app to 1.4.2 the group option is no
longer supported.
This commit is contained in:
Kai Harries 2021-01-03 15:16:26 +01:00
parent d27be236f1
commit 991aba30f8

View File

@ -19,23 +19,9 @@ in
nitrokey-app package, depending on your device and needs.
'';
};
group = mkOption {
type = types.str;
default = "nitrokey";
example = "wheel";
description = ''
Grant access to Nitrokey devices to users in this group.
'';
};
};
config = mkIf cfg.enable {
services.udev.packages = [
(pkgs.nitrokey-udev-rules.override (attrs:
{ inherit (cfg) group; }
))
];
users.groups.${cfg.group} = {};
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
};
}