add cups printers

feature/refacoring
Ingolf Wagner 2023-02-20 13:45:06 +01:00
parent 06d58311e4
commit 8ea47e6d55
Signed by: palo
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}" ''