mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 06:44:35 +00:00
Add support for hplip (HP printers)
This commit is contained in:
parent
8dd2a143ac
commit
bb1915e3dd
|
@ -98,7 +98,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
workstation = {
|
workstation = {
|
||||||
printing.enable = true;
|
printing = {
|
||||||
|
enable = true;
|
||||||
|
hplip.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
@ -11,6 +11,10 @@ in
|
||||||
|
|
||||||
Also adds some drivers for common printers.
|
Also adds some drivers for common printers.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
hplip.enable = mkEnableOption ''
|
||||||
|
HP printing support using hplip software.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ pkgs, lib, config, ...}: let
|
{ pkgs, lib, config, ...}: let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf optional;
|
||||||
deviceType = config.myOptions.device.roles.type;
|
deviceType = config.myOptions.device.roles.type;
|
||||||
acceptedTypes = ["laptop" "desktop"];
|
acceptedTypes = ["laptop" "desktop"];
|
||||||
|
|
||||||
|
@ -26,5 +26,8 @@ in {
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = optional cfg.hplip.enable pkgs.hplip;
|
||||||
|
myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue