Skip to content

Commit f1b26f5

Browse files
authored
nitrokey-udev-rules: init at 1.0.0 (NixOS#352481)
2 parents a4761c0 + bed43b4 commit f1b26f5

File tree

4 files changed

+40
-5
lines changed

4 files changed

+40
-5
lines changed

maintainers/maintainer-list.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18771,6 +18771,13 @@
1877118771
githubId = 521306;
1877218772
name = "Rob Glossop";
1877318773
};
18774+
robinkrahl = {
18775+
email = "[email protected]";
18776+
github = "robinkrahl";
18777+
githubId = 165115;
18778+
keys = [ { fingerprint = "EC7E F0F9 B681 4C24 6236 3842 B755 6972 702A FD45"; } ];
18779+
name = "Robin Krahl";
18780+
};
1877418781
roblabla = {
1877518782
email = "[email protected]";
1877618783
github = "roblabla";

nixos/modules/hardware/nitrokey.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ in
1111
type = lib.types.bool;
1212
default = false;
1313
description = ''
14-
Enables udev rules for Nitrokey devices. By default grants access
15-
to users in the "nitrokey" group. You may want to install the
16-
nitrokey-app package, depending on your device and needs.
14+
Enables udev rules for Nitrokey devices.
1715
'';
1816
};
1917
};
2018

2119
config = lib.mkIf cfg.enable {
22-
services.udev.packages = [ pkgs.libnitrokey ];
20+
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
2321
};
2422
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
}:
6+
7+
stdenv.mkDerivation (finalAttrs: {
8+
pname = "nitrokey-udev-rules";
9+
version = "1.0.0";
10+
11+
src = fetchFromGitHub {
12+
owner = "Nitrokey";
13+
repo = "nitrokey-udev-rules";
14+
rev = "v${finalAttrs.version}";
15+
hash = "sha256-uq1+YQg+oe5UFphpy1AdxEYaPFyRle6ffYOPoU6Li28=";
16+
};
17+
18+
installPhase = ''
19+
install -D 41-nitrokey.rules -t $out/etc/udev/rules.d
20+
'';
21+
22+
meta = with lib; {
23+
description = "udev rules for Nitrokey devices";
24+
homepage = "https://github.com/Nitrokey/nitrokey-udev-rules";
25+
license = [ licenses.cc0 ];
26+
maintainers = with maintainers; [
27+
frogamic
28+
robinkrahl
29+
];
30+
};
31+
})

pkgs/top-level/aliases.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,6 @@ mapAliases {
824824
neochat = libsForQt5.kdeGear.neochat; # added 2022-05-10
825825
newlibCross = newlib; # Added 2024-09-06
826826
newlib-nanoCross = newlib-nano; # Added 2024-09-06
827-
nitrokey-udev-rules = libnitrokey; # Added 2023-03-25
828827
nix-direnv-flakes = nix-direnv;
829828
nix-ld-rs = nix-ld; # Added 2024-08-17
830829
nix-repl = throw (

0 commit comments

Comments
 (0)