make hardware profiles prettier

This commit is contained in:
chaos 2024-04-01 18:18:10 +02:00
parent aa350ce0a7
commit 0bd415928c
No known key found for this signature in database
3 changed files with 33 additions and 9 deletions

View file

@ -4,12 +4,21 @@
... ...
}: let }: let
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
is_x86 = "${pkgs.system}" == "x86_64-linux";
in { in {
hardware.enableRedistributableFirmware = true; hardware = {
hardware.enableAllFirmware = true; enableAllFirmware = true;
hardware.cpu.intel.updateMicrocode = enableRedistributableFirmware = true;
mkIf ("${pkgs.system}" == "x86_64-linux") true; wirelessRegulatoryDatabase = true;
hardware.cpu.amd.updateMicrocode =
mkIf ("${pkgs.system}" == "x86_64-linux") true; ksm.enable = true;
hardware.wirelessRegulatoryDatabase = true;
i2c.enable = true;
cpu = {
intel.updateMicrocode = mkIf is_x86 true;
amd.updateMicrocode = mkIf is_x86 true;
};
};
} }

View file

@ -1,4 +1,17 @@
{pkgs, ...}: { {pkgs, ...}: {
services.printing.enable = true; services.avahi = {
services.printing.drivers = with pkgs; [gutenprint hplip]; enable = true;
nssmdns = true;
openFirewall = true;
};
services.printing = {
enable = true;
drivers = with pkgs; [gutenprint hplip];
};
hardware.sane = {
enable = true;
openFirewall = true;
};
} }

View file

@ -13,6 +13,8 @@
"uinput" "uinput"
"audio" "audio"
"rtkit" "rtkit"
"i2c"
"kvm"
]; ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZpvkllLt7HinNpisOx7hWT2br68UoCg0sXKTxHEeUB chaos@chaos" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZpvkllLt7HinNpisOx7hWT2br68UoCg0sXKTxHEeUB chaos@chaos"