Fixed printers for regular users
This commit is contained in:
parent
c87bb2a81d
commit
12d4f46367
@ -186,6 +186,14 @@
|
|||||||
programs.nix-ld.libraries = with pkgs; [
|
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
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
@ -12,15 +12,15 @@ in
|
|||||||
users.users = {
|
users.users = {
|
||||||
gwen = {
|
gwen = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "networkManager" ];
|
extraGroups = [ "networkManager" "lpadmin" ];
|
||||||
};
|
};
|
||||||
ingrid = {
|
ingrid = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "networkManager" ];
|
extraGroups = [ "networkManager" "lpadmin" ];
|
||||||
};
|
};
|
||||||
bill = {
|
bill = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "networkManager" ];
|
extraGroups = [ "networkManager" "lpadmin" ];
|
||||||
};
|
};
|
||||||
logic11 = {
|
logic11 = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./misc/dslr-webcam.nix
|
./misc/dslr-webcam.nix
|
||||||
|
./misc/wifi-multiplex.nix
|
||||||
];
|
];
|
||||||
# Enable the KDE Desktop Environment.
|
# Enable the KDE Desktop Environment.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
|
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
wifiUdevRule = ''
|
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
|
in
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user