mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: added user2 and refactored to accommodate
This commit is contained in:
parent
c169f84dcc
commit
9cdcf4fec4
97 changed files with 1473 additions and 1052 deletions
|
@ -1,36 +1,51 @@
|
|||
{flake, ...}: let
|
||||
inherit
|
||||
(flake.config.machines.devices)
|
||||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices)
|
||||
printer0
|
||||
printer1
|
||||
;
|
||||
genericPPD = "drv:///sample.drv/generic.ppd";
|
||||
pageSize = "Letter";
|
||||
in {
|
||||
hardware.printers = {
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = printer0.label;
|
||||
location = "Downstairs";
|
||||
deviceUri = "https://${printer0.ip.address0}";
|
||||
model = genericPPD;
|
||||
ppdOptions = {
|
||||
PageSize = pageSize;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = printer1.label;
|
||||
location = "Upstairs";
|
||||
deviceUri = "https://${printer1.ip.address0}";
|
||||
model = genericPPD;
|
||||
ppdOptions = {
|
||||
PageSize = pageSize;
|
||||
};
|
||||
}
|
||||
];
|
||||
ensureDefaultPrinter = printer1.label;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = with pkgs; [
|
||||
brlaser
|
||||
cups-brother-hll2375dw
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# hardware.printers = {
|
||||
# ensurePrinters = [
|
||||
# {
|
||||
# name = printer0.label;
|
||||
# location = "Downstairs";
|
||||
# deviceUri = "https://${printer0.ip.address0}";
|
||||
# model = genericPPD;
|
||||
# ppdOptions = {
|
||||
# PageSize = pageSize;
|
||||
# };
|
||||
# }
|
||||
# {
|
||||
# name = printer1.label;
|
||||
# location = "Upstairs";
|
||||
# deviceUri = "https://${printer1.ip.address0}";
|
||||
# model = genericPPD;
|
||||
# ppdOptions = {
|
||||
# PageSize = pageSize;
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# ensureDefaultPrinter = printer1.label;
|
||||
# };
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue