2019-07-05 23:11:21 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2019-07-07 12:08:00 +01:00
|
|
|
networking.hostName = "foureighty";
|
2019-12-24 19:13:52 +00:00
|
|
|
|
2019-07-07 12:08:00 +01:00
|
|
|
boot = {
|
2020-07-22 23:02:20 +01:00
|
|
|
# need unlocked kernel for throttled daemon
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2020-02-15 09:20:29 +00:00
|
|
|
|
2020-07-19 21:57:42 +01:00
|
|
|
kernelModules = [ "acpi_call" ];
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
initrd.luks.devices = {
|
|
|
|
root = {
|
2019-07-05 23:11:21 +01:00
|
|
|
device = "/dev/disk/by-uuid/a9e8a44f-15be-4844-a0a1-46892cc5e44e";
|
|
|
|
allowDiscards = true;
|
2019-07-07 12:08:00 +01:00
|
|
|
};
|
2019-07-05 23:11:21 +01:00
|
|
|
};
|
2020-02-22 11:11:10 +00:00
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
loader.grub = {
|
|
|
|
device = "nodev";
|
|
|
|
efiSupport = true;
|
|
|
|
};
|
2020-02-22 11:11:10 +00:00
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
};
|
2019-07-05 23:11:21 +01:00
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
time.hardwareClockInLocalTime = true;
|
|
|
|
time.timeZone = "Europe/London";
|
2019-07-05 23:11:21 +01:00
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
hardware.trackpoint.enable = true;
|
2020-07-19 17:47:31 +01:00
|
|
|
services.throttled.enable = true;
|
2020-07-11 21:02:36 +01:00
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
algorithm = "zstd";
|
2020-07-12 09:23:51 +01:00
|
|
|
memoryPercent = 25;
|
2020-07-11 21:02:36 +01:00
|
|
|
};
|
2020-02-18 19:26:04 +00:00
|
|
|
services.hardware.bolt.enable = true;
|
|
|
|
services.fprintd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2019-07-06 12:03:30 +01:00
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
imports = [
|
2020-07-11 21:02:36 +01:00
|
|
|
./hardware-configuration.nix
|
2020-05-19 18:10:36 +01:00
|
|
|
../../boot.nix
|
|
|
|
../../common.nix
|
2020-07-04 17:22:30 +01:00
|
|
|
../../gfx-nvidia-optimus.nix
|
2020-05-19 18:10:36 +01:00
|
|
|
../../zerotier.nix
|
|
|
|
../../distributed-builds.nix
|
2020-05-31 12:47:50 +01:00
|
|
|
../../libvirt.nix
|
2020-07-04 17:22:30 +01:00
|
|
|
../../gnome/system.nix
|
2020-06-04 17:51:26 +01:00
|
|
|
../../backups.nix
|
2020-02-18 19:26:04 +00:00
|
|
|
];
|
2020-02-23 10:38:22 +00:00
|
|
|
|
2020-05-02 20:20:22 +01:00
|
|
|
|
2020-02-29 14:00:42 +00:00
|
|
|
nix.maxJobs = 2;
|
|
|
|
nix.buildCores = 6;
|
2020-02-18 19:26:04 +00:00
|
|
|
}
|