Fixed printers for regular users
This commit is contained in:
parent
c87bb2a81d
commit
12d4f46367
@ -186,6 +186,14 @@
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
];
|
||||
|
||||
#Create ldpadmin group for printer access
|
||||
services.printing.extraFilesConf = ''
|
||||
SystemGroup root wheel lpadmin
|
||||
'';
|
||||
users.groups = {
|
||||
lpadmin = { };
|
||||
};
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
|
@ -12,15 +12,15 @@ in
|
||||
users.users = {
|
||||
gwen = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "networkManager" ];
|
||||
extraGroups = [ "networkManager" "lpadmin" ];
|
||||
};
|
||||
ingrid = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "networkManager" ];
|
||||
extraGroups = [ "networkManager" "lpadmin" ];
|
||||
};
|
||||
bill = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "networkManager" ];
|
||||
extraGroups = [ "networkManager" "lpadmin" ];
|
||||
};
|
||||
logic11 = {
|
||||
isNormalUser = true;
|
||||
|
@ -3,6 +3,7 @@
|
||||
{
|
||||
imports = [
|
||||
./misc/dslr-webcam.nix
|
||||
./misc/wifi-multiplex.nix
|
||||
];
|
||||
# Enable the KDE Desktop Environment.
|
||||
services.xserver.enable = true;
|
||||
|
@ -1,10 +1,8 @@
|
||||
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
wifiUdevRule = ''
|
||||
ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{ID_NET_NAME_MAC}=="", RUN+="/bin/sh -c '${pkgs.iw}/bin/iw dev %k interface add %k_ap type station'"
|
||||
|
||||
ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", KERNEL!="virt_", RUN+="${pkgs.iw}/bin/iw dev %k interface add virt_%k_ap type station"
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user