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
|
||||
];
|
||||
|
||||
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.
|
||||
niksos = {
|
||||
hardware = {
|
||||
joycond = false; #NOTE: enable when game night lol
|
||||
fingerprint = true;
|
||||
bluetooth = true;
|
||||
printer = true;
|
||||
|
||||
portable = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -10,11 +10,13 @@ in {
|
|||
./graphics.nix
|
||||
./joycond.nix
|
||||
./power.nix
|
||||
./printer.nix
|
||||
];
|
||||
|
||||
options.niksos.hardware = {
|
||||
bluetooth = mkEO "bluetooth related stuff.";
|
||||
fingerprint = mkEO "fingerprint support.";
|
||||
printer = mkEO "hh1 printer support.";
|
||||
|
||||
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