{ config, pkgs, inputs, modules, sops, lib, ... }:
{
imports = with inputs.hardware.nixosModules; [
common-pc-laptop
common-pc-laptop-ssd
common-cpu-intel
lenovo-thinkpad-p50
common-pc-laptop-acpi_call
] ++ [
/${modules}/system
./hardware-configuration.nix
./users.nix
./autorandr.nix
];
<<<PereWork/system>>>
}
Enable unfree wireless drivers. This must be done manually, since enableAllFirmware
requires pkgs
to directly contain unfree packages.
hardware = {
enableAllFirmware = false;
firmware = with pkgs.unfree; [
broadcom-bt-firmware
b43Firmware_5_1_138
b43Firmware_6_30_163_46
xow_dongle-firmware
facetimehd-firmware
facetimehd-calibration
];
};
"broadcom-bt-firmware"
"b43-firmware"
"xow_dongle-firmware"
"facetimehd-firmware"
"facetimehd-calibration"
Enable unfree video drivers.
"nvidia-x11"
"nvidia-settings"
Enable virtualisation
virtualisation = {
libvirtd.enable = true;
virtualbox.host.enable = true;
};
Enable BTRFS compression
fileSystems."/".options = [ "compress=zstd" ];
Disable offload mode, otherwise X won't start
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.prime.offload.enable = false;
networking.hosts = {
"10.14.201.215" = [ "k8sd-plant-jft-mvlabs.vidim.it" ];
"192.168.69.2" = [ "k8sd-topbest-imel.i4paintshop.com" "argocd-topbest-imel.i4paintshop.com" "pgad-topbest-imel.i4paintshop.com" ];
};
"teamviewer"
services.teamviewer.enable = true;
sops.secrets."ca/PereWork.pem" = {};
# security.pki.certificateFiles = [ config.sops.secrets."ca/PereWork.pem".path ];