add cups printers

This commit is contained in:
Ingolf Wagner 2023-02-20 13:45:06 +01:00
parent 06d58311e4
commit 8ea47e6d55
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 21 additions and 2 deletions

View file

@ -10,6 +10,7 @@
./packages.nix
./syncthing.nix
./tinc.nix
./cups.nix
#./wifi-access-point.nix
#./wireshark.nix

View file

@ -0,0 +1,18 @@
{
hardware.printers.ensurePrinters = [
{
description = "Lexmark E350d";
deviceUri = "usb://Lexmark/E350d?serial=622Z9ZC";
location = "office";
name = "Lexmark_E350d";
model = "drv:///sample.drv/generic.ppd";
ppdOptions = {
job-sheets = "none, none";
media = "na_letter_8.5x11in";
sides = "one-sided";
};
}
];
}

View file

@ -2,7 +2,7 @@
let
nextcloudSync = folder:
let
password = "$( pass show home/nextcloud/palo/nextcloudcmd-token)";
password = "$( ${pkgs.pass}/bin/pass show home/nextcloud/palo/nextcloudcmd-token )";
user = "palo";
in
pkgs.writers.writeBashBin "nextcloud-sync-${folder}" ''

View file

@ -2,7 +2,7 @@
let
nextcloudSync = folder:
let
password = "$( pass show home/nextcloud/palo/nextcloudcmd-token)";
password = "$( ${pkgs.pass}/bin/pass show home/nextcloud/palo/nextcloudcmd-token )";
user = "palo";
in
pkgs.writers.writeBashBin "nextcloud-sync-${folder}" ''