2022-02-01 05:17:22 +03:00

45 lines
900 B
Nix

{ inputs, lib, ... }: {
imports = with inputs.self.nixosModules; with inputs.self.nixosProfiles; [
./hardware-configuration.nix
inputs.self.nixosRoles.server
hardware
light
mullvad
services
];
deviceSpecific.devInfo = {
cpu = {
vendor = "intel";
clock = 2300;
cores = 4;
};
drive = {
type = "hdd";
speed = 100;
size = 500;
};
gpu = {
vendor = "intel";
};
bigScreen = false;
ram = 6;
};
deviceSpecific.enableVirtualisation = true;
deviceSpecific.wireguard.enable = true;
deviceSpecific.isLaptop = lib.mkForce true;
boot = {
cleanTmpDir = true;
# kernelParams = [ "video=VGA-1:d" ];
loader = {
timeout = lib.mkForce 4;
systemd-boot.enable = true;
};
};
services.tlp.settings.TLP_DEFAULT_MODE = lib.mkForce "AC";
services.logind.lidSwitch = "lock";
}