feat(system): add home printer config
This commit is contained in:
parent
d719b55e2c
commit
06996377f6
|
@ -8,6 +8,7 @@
|
||||||
./hardware/steam.nix
|
./hardware/steam.nix
|
||||||
./hardware/ledger.nix
|
./hardware/ledger.nix
|
||||||
./system/desktop.nix
|
./system/desktop.nix
|
||||||
|
./system/printing/home.nix
|
||||||
./system/gaming.nix
|
./system/gaming.nix
|
||||||
./desktop
|
./desktop
|
||||||
./virtualisation/libvirt.nix
|
./virtualisation/libvirt.nix
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./common.nix ./fonts.nix ./sound.nix ./vpn.nix ];
|
imports = [ ./common.nix ./fonts.nix ./sound.nix ./vpn.nix ./printing ];
|
||||||
|
|
||||||
services.printing.enable = true;
|
|
||||||
services.avahi.enable = true;
|
|
||||||
services.avahi.nssmdns = true;
|
|
||||||
}
|
}
|
||||||
|
|
7
system/printing/default.nix
Normal file
7
system/printing/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.printing.enable = true;
|
||||||
|
services.avahi.enable = true;
|
||||||
|
services.avahi.nssmdns = true;
|
||||||
|
}
|
14
system/printing/home.nix
Normal file
14
system/printing/home.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
hardware.printers = {
|
||||||
|
ensureDefaultPrinter = "Brother_HL-L2370DN";
|
||||||
|
ensurePrinters = [{
|
||||||
|
name = "Brother_HL-L2370DN";
|
||||||
|
description = "Brother HL-L2370DN";
|
||||||
|
deviceUri =
|
||||||
|
"dnssd://Brother%20HL-L2370DN%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-b422007e1490";
|
||||||
|
model = "everywhere";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
./hardware/gpu-intel.nix
|
./hardware/gpu-intel.nix
|
||||||
./hardware/bluetooth.nix
|
./hardware/bluetooth.nix
|
||||||
./system/desktop.nix
|
./system/desktop.nix
|
||||||
|
./system/printing/home.nix
|
||||||
./desktop
|
./desktop
|
||||||
./virtualisation/podman.nix
|
./virtualisation/podman.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue