Feat: modularized hh1 printing.
This commit is contained in:
parent
f622009e87
commit
d98f41f2a5
3 changed files with 26 additions and 16 deletions
|
|
@ -5,28 +5,13 @@
|
||||||
./wluma.nix
|
./wluma.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.printing = {
|
|
||||||
enable = true;
|
|
||||||
startWhenNeeded = true;
|
|
||||||
};
|
|
||||||
hardware.printers = {
|
|
||||||
ensureDefaultPrinter = "Broeder";
|
|
||||||
ensurePrinters = [
|
|
||||||
{
|
|
||||||
deviceUri = "ipp://192.168.1.33/ipp";
|
|
||||||
location = "home";
|
|
||||||
name = "Broeder";
|
|
||||||
model = "everywhere";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# programs.evolution.enable = true; # FIXME: move to appropiate place.
|
# programs.evolution.enable = true; # FIXME: move to appropiate place.
|
||||||
niksos = {
|
niksos = {
|
||||||
hardware = {
|
hardware = {
|
||||||
joycond = false; #NOTE: enable when game night lol
|
joycond = false; #NOTE: enable when game night lol
|
||||||
fingerprint = true;
|
fingerprint = true;
|
||||||
bluetooth = true;
|
bluetooth = true;
|
||||||
|
printer = true;
|
||||||
|
|
||||||
portable = {
|
portable = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,13 @@ in {
|
||||||
./graphics.nix
|
./graphics.nix
|
||||||
./joycond.nix
|
./joycond.nix
|
||||||
./power.nix
|
./power.nix
|
||||||
|
./printer.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.niksos.hardware = {
|
options.niksos.hardware = {
|
||||||
bluetooth = mkEO "bluetooth related stuff.";
|
bluetooth = mkEO "bluetooth related stuff.";
|
||||||
fingerprint = mkEO "fingerprint support.";
|
fingerprint = mkEO "fingerprint support.";
|
||||||
|
printer = mkEO "hh1 printer support.";
|
||||||
|
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = mkEO "core graphics";
|
enable = mkEO "core graphics";
|
||||||
|
|
|
||||||
23
system/hardware/printer.nix
Normal file
23
system/hardware/printer.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
config = lib.mkIf config.niksos.hardware.printer {
|
||||||
|
services.printing = {
|
||||||
|
enable = true;
|
||||||
|
startWhenNeeded = true;
|
||||||
|
};
|
||||||
|
hardware.printers = {
|
||||||
|
ensureDefaultPrinter = "Broeder";
|
||||||
|
ensurePrinters = [
|
||||||
|
{
|
||||||
|
deviceUri = "ipp://192.168.1.33/ipp";
|
||||||
|
location = "home";
|
||||||
|
name = "Broeder";
|
||||||
|
model = "everywhere";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue