From 0052d22c9efe9773a38359cd47b8441e438dcb5f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 10 Dec 2022 19:17:33 +0800 Subject: [PATCH] aux: label printer permissions --- aux-etc-nixos/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aux-etc-nixos/configuration.nix b/aux-etc-nixos/configuration.nix index fb9ff2f3..7b1c0d18 100644 --- a/aux-etc-nixos/configuration.nix +++ b/aux-etc-nixos/configuration.nix @@ -208,6 +208,12 @@ in services.backupdl.enable = true; + services.udev.extraRules = + '' + # label printer + SUBSYSTEM=="usb", ATTRS{idVendor}=="07cf", ATTRS{idProduct}=="4204", MODE="0660", GROUP="plugdev" + ''; + nix.settings.trusted-public-keys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="]; nix.settings.substituters = ["https://nixbld.m-labs.hk" "https://cache.nixos.org"]; nix.settings.trusted-users = ["sb"];