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-05-08 12:52:42 +01:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2020-02-15 09:20:29 +00:00
|
|
|
|
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;
|
|
|
|
services.hardware.bolt.enable = true;
|
|
|
|
services.fprintd = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.fprintd-thinkpad;
|
|
|
|
};
|
2019-07-06 12:03:30 +01:00
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
hardware.nvidiaOptimus.disable = true;
|
2020-05-09 11:02:36 +01:00
|
|
|
hardware.nvidia.prime.sync.enable = false;
|
2020-05-02 09:18:11 +01:00
|
|
|
hardware.bumblebee.enable = false;
|
2019-07-18 23:50:46 +01:00
|
|
|
|
2020-02-18 19:26:04 +00:00
|
|
|
imports = [
|
|
|
|
/etc/nixos/hardware-configuration.nix
|
|
|
|
../boot.nix
|
|
|
|
../common.nix
|
|
|
|
../gfx-intel.nix
|
|
|
|
../zerotier.nix
|
|
|
|
../i3/system.nix
|
2020-05-02 14:44:15 +01:00
|
|
|
../distributed-builds.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
|
|
|
}
|