mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
fix(lint): nixfmt the whole tree
This commit is contained in:
parent
643b136863
commit
bf219a30c2
69 changed files with 2605 additions and 1726 deletions
|
|
@ -1,44 +1,52 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
generalCfg = config.aviallon.general;
|
||||
in {
|
||||
in
|
||||
{
|
||||
config = mkIf (cfg.enable && !generalCfg.minimal) {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
defaultShared = mkDefault true;
|
||||
browsing = mkDefault true;
|
||||
listenAddresses = [ "0.0.0.0:631" ];
|
||||
drivers = with pkgs; []
|
||||
drivers =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (optionals (!generalCfg.minimal) [
|
||||
hplipWithPlugin
|
||||
gutenprint
|
||||
splix
|
||||
brlaser
|
||||
# cups-bjnp
|
||||
# cups-dymo
|
||||
# cups-zj-58
|
||||
# cups-kyocera
|
||||
cups-filters
|
||||
carps-cups
|
||||
# cups-kyodialog3
|
||||
cups-brother-hl1110
|
||||
cups-toshiba-estudio
|
||||
cups-brother-hl1210w
|
||||
cups-brother-hl3140cw
|
||||
cups-brother-hll2340dw
|
||||
cups-drv-rastertosag-gdi
|
||||
# cups-kyocera-ecosys-m552x-p502x
|
||||
canon-cups-ufr2
|
||||
]);
|
||||
hplipWithPlugin
|
||||
gutenprint
|
||||
splix
|
||||
brlaser
|
||||
# cups-bjnp
|
||||
# cups-dymo
|
||||
# cups-zj-58
|
||||
# cups-kyocera
|
||||
cups-filters
|
||||
carps-cups
|
||||
# cups-kyodialog3
|
||||
cups-brother-hl1110
|
||||
cups-toshiba-estudio
|
||||
cups-brother-hl1210w
|
||||
cups-brother-hl3140cw
|
||||
cups-brother-hll2340dw
|
||||
cups-drv-rastertosag-gdi
|
||||
# cups-kyocera-ecosys-m552x-p502x
|
||||
canon-cups-ufr2
|
||||
]);
|
||||
webInterface = mkDefault true;
|
||||
};
|
||||
services.system-config-printer.enable = true;
|
||||
|
||||
hardware.sane = {
|
||||
enable = true;
|
||||
netConf = "192.168.0.0/24";
|
||||
netConf = "192.168.0.0/24";
|
||||
extraBackends = with pkgs; [
|
||||
hplipWithPlugin
|
||||
];
|
||||
|
|
@ -46,9 +54,12 @@ in {
|
|||
brscan4.enable = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = optionals config.services.printing.enable [ 631 139 445 ];
|
||||
networking.firewall.allowedUDPPorts = optionals config.services.printing.enable [ 137 ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = optionals config.services.printing.enable [
|
||||
631
|
||||
139
|
||||
445
|
||||
];
|
||||
networking.firewall.allowedUDPPorts = optionals config.services.printing.enable [ 137 ];
|
||||
|
||||
aviallon.programs.allowUnfreeList = [
|
||||
"hplip"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue