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:
parent
d27be236f1
commit
991aba30f8
@ -19,23 +19,9 @@ in
|
|||||||
nitrokey-app package, depending on your device and needs.
|
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 {
|
config = mkIf cfg.enable {
|
||||||
services.udev.packages = [
|
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
|
||||||
(pkgs.nitrokey-udev-rules.override (attrs:
|
|
||||||
{ inherit (cfg) group; }
|
|
||||||
))
|
|
||||||
];
|
|
||||||
users.groups.${cfg.group} = {};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user