add yubikey

This commit is contained in:
2023-09-07 08:55:56 +02:00
parent 653657122e
commit 8bc67465f1
9 changed files with 16454 additions and 13 deletions

View File

@@ -1,23 +1,29 @@
{ lib, ... }:
{ lib, pkgs, ... }:
let
brother = "Brother_HL-L2360D";
hostName = "brn30055c566237.cloonar.multimedia";
in {
services.printing.enable = true;
services.printing.drivers = [ pkgs.brlaser ];
services.avahi.enable = true;
services.avahi.nssmdns = true;
services.avahi.openFirewall = true;
# hardware.printers = {
# ensureDefaultPrinter = brother;
# ensurePrinters = [
# {
# name = brother;
# deviceUri = "ipp://${hostName}/ipp";
# model = "everywhere";
# description = lib.replaceStrings [ "_" ] [ " " ] brother;
# location = "Study";
# }
# ];
# };
hardware.printers = {
ensureDefaultPrinter = brother;
ensurePrinters = [
{
name = "Office";
deviceUri = "socket://mercury.epicenter.intra";
description = lib.replaceStrings [ "_" ] [ " " ] brother;
location = "Office";
}
{
name = "Cloonar";
deviceUri = "socket://mercury.epicenter.intra";
description = lib.replaceStrings [ "_" ] [ " " ] brother;
location = "Office";
}
];
};
}