add cups printers
This commit is contained in:
parent
06d58311e4
commit
8ea47e6d55
4 changed files with 21 additions and 2 deletions
nixos/machines
|
@ -10,6 +10,7 @@
|
|||
./packages.nix
|
||||
./syncthing.nix
|
||||
./tinc.nix
|
||||
./cups.nix
|
||||
|
||||
#./wifi-access-point.nix
|
||||
#./wireshark.nix
|
||||
|
|
18
nixos/machines/cream/cups.nix
Normal file
18
nixos/machines/cream/cups.nix
Normal 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";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
];
|
||||
}
|
|
@ -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}" ''
|
||||
|
|
|
@ -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}" ''
|
||||
|
|
Loading…
Reference in a new issue