flake rewiritte

This commit is contained in:
jopejoe1 2023-12-29 16:43:40 +01:00
parent f206e94425
commit a0d6ca6267
33 changed files with 1257 additions and 1070 deletions

View file

@ -1,22 +1,32 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.jopejoe1.printing;
in
{
services.printing = {
enable = true;
webInterface = true;
drivers = with pkgs; [ hplipWithPlugin ];
options.jopejoe1.printing = {
enable = lib.mkEnableOption "Enable Printing";
};
hardware = {
sane = {
config = lib.mkIf cfg.enable {
services.printing = {
enable = true;
extraBackends = with pkgs; [ sane-airscan hplipWithPlugin ];
webInterface = true;
drivers = with pkgs; [ hplipWithPlugin ];
};
hardware = {
sane = {
enable = true;
extraBackends = with pkgs; [ sane-airscan hplipWithPlugin ];
};
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
}