From 4c7a2dfce35c70dd03d2b9931e8936cf96a9fdc9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 30 Jan 2023 16:12:00 +0800 Subject: [PATCH] nixbld: label printer permissions --- nixbld-etc-nixos/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index dc05151f..e3727eb4 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -330,6 +330,12 @@ in hardware.sane.enable = true; hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ]; + services.udev.extraRules = + '' + # label printer + SUBSYSTEM=="usb", ATTRS{idVendor}=="07cf", ATTRS{idProduct}=="4204", MODE="0660", GROUP="lp" + ''; + users.extraUsers.root = { openssh.authorizedKeys.keys = [ "ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBNdIiLvP2hmDUFyyE0oLOIXrjrMdWWpBV9/gPR5m4AiARx4JkufIDZzmptdYQ5FhJORJ4lluPqp7dAmahoSwg4lv9Di0iNQpHMJvNGZLHYKM1H1FWCCFIEDJ8bD4SVfrDg=="