dotfiles/nixos/boxes/foureighty/configuration.nix
2020-07-11 21:02:36 +01:00

52 lines
986 B
Nix

{ config, pkgs, ... }:
{
networking.hostName = "foureighty";
boot = {
kernelPackages = pkgs.linuxPackages_latest_hardened;
initrd.luks.devices = {
root = {
device = "/dev/disk/by-uuid/a9e8a44f-15be-4844-a0a1-46892cc5e44e";
allowDiscards = true;
};
};
loader.grub = {
device = "nodev";
efiSupport = true;
};
loader.efi.canTouchEfiVariables = true;
};
time.hardwareClockInLocalTime = true;
time.timeZone = "Europe/London";
hardware.trackpoint.enable = true;
zramSwap = {
enable = true;
algorithm = "zstd";
};
services.hardware.bolt.enable = true;
services.fprintd = {
enable = true;
};
imports = [
./hardware-configuration.nix
../../boot.nix
../../common.nix
../../gfx-nvidia-optimus.nix
../../zerotier.nix
../../distributed-builds.nix
../../libvirt.nix
../../gnome/system.nix
../../backups.nix
];
nix.maxJobs = 2;
nix.buildCores = 6;
}