mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +00:00
Compare commits
3 commits
904b64c6f4
...
c916fd31b4
Author | SHA1 | Date | |
---|---|---|---|
ItsDrike | c916fd31b4 | ||
ItsDrike | bb1915e3dd | ||
ItsDrike | 8dd2a143ac |
|
@ -83,7 +83,7 @@
|
||||||
device = {
|
device = {
|
||||||
roles = {
|
roles = {
|
||||||
type = "laptop";
|
type = "laptop";
|
||||||
virtual-machine = false;
|
virtual-machine = false;
|
||||||
};
|
};
|
||||||
cpu.type = "amd";
|
cpu.type = "amd";
|
||||||
gpu.type = "amd";
|
gpu.type = "amd";
|
||||||
|
@ -93,12 +93,15 @@
|
||||||
security = {
|
security = {
|
||||||
auditd = {
|
auditd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoPrune.enable = true;
|
autoPrune.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
workstation = {
|
workstation = {
|
||||||
printing.enable = true;
|
printing = {
|
||||||
|
enable = true;
|
||||||
|
hplip.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -107,18 +110,18 @@
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
userName = "ItsDrike";
|
userName = "ItsDrike";
|
||||||
userEmail = "itsdrike@protonmail.com";
|
userEmail = "itsdrike@protonmail.com";
|
||||||
signing = {
|
signing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
key = "FA2745890B7048C0";
|
key = "FA2745890B7048C0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wms.hyprland = {
|
wms.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
monitor = [
|
monitor = [
|
||||||
"eDP-1, 1920x1080@60, 0x0, 1"
|
"eDP-1, 1920x1080@60, 0x0, 1"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
@ -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