Compare commits

..

3 commits

Author SHA1 Message Date
ItsDrike c916fd31b4
Fix indentation 2024-06-19 19:23:36 +02:00
ItsDrike bb1915e3dd
Add support for hplip (HP printers) 2024-06-19 19:22:02 +02:00
ItsDrike 8dd2a143ac
Fix indent 2024-06-19 19:05:50 +02:00
3 changed files with 21 additions and 11 deletions

View file

@ -83,7 +83,7 @@
device = {
roles = {
type = "laptop";
virtual-machine = false;
virtual-machine = false;
};
cpu.type = "amd";
gpu.type = "amd";
@ -93,12 +93,15 @@
security = {
auditd = {
enable = true;
autoPrune.enable = true;
autoPrune.enable = true;
};
};
workstation = {
printing.enable = true;
printing = {
enable = true;
hplip.enable = true;
};
};
home-manager = {
@ -107,18 +110,18 @@
git = {
userName = "ItsDrike";
userEmail = "itsdrike@protonmail.com";
signing = {
enable = true;
userEmail = "itsdrike@protonmail.com";
signing = {
enable = true;
key = "FA2745890B7048C0";
};
};
};
wms.hyprland = {
enable = true;
monitor = [
"eDP-1, 1920x1080@60, 0x0, 1"
];
monitor = [
"eDP-1, 1920x1080@60, 0x0, 1"
];
};
programs = {

View file

@ -11,6 +11,10 @@ in
Also adds some drivers for common printers.
'';
hplip.enable = mkEnableOption ''
HP printing support using hplip software.
'';
};
};
}

View file

@ -1,5 +1,5 @@
{ pkgs, lib, config, ...}: let
inherit (lib) mkIf;
inherit (lib) mkIf optional;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];
@ -26,5 +26,8 @@ in {
openFirewall = true;
};
};
environment.systemPackages = optional cfg.hplip.enable pkgs.hplip;
myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip";
};
}