mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-14 16:17:17 +00:00
Compare commits
No commits in common. "c916fd31b47b9bca08c55d14b2ca51220ac3fff6" and "904b64c6f41522d13828b3348348ad707d7a97c7" have entirely different histories.
c916fd31b4
...
904b64c6f4
|
@ -98,10 +98,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
workstation = {
|
workstation = {
|
||||||
printing = {
|
printing.enable = true;
|
||||||
enable = true;
|
|
||||||
hplip.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
@ -11,10 +11,6 @@ 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 optional;
|
inherit (lib) mkIf;
|
||||||
deviceType = config.myOptions.device.roles.type;
|
deviceType = config.myOptions.device.roles.type;
|
||||||
acceptedTypes = ["laptop" "desktop"];
|
acceptedTypes = ["laptop" "desktop"];
|
||||||
|
|
||||||
|
@ -26,8 +26,5 @@ 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