dotfiles/nixos/boxes/foureighty.nix

45 lines
994 B
Nix
Raw Normal View History

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-02-15 09:20:29 +00:00
kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest_hardened;
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";
preLVM = true;
allowDiscards = true;
2019-07-07 12:08:00 +01:00
};
2019-07-05 23:11:21 +01:00
};
2020-02-18 19:26:04 +00:00
loader.grub = {
device = "nodev";
efiSupport = true;
};
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;
hardware.opengl.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ];
2020-02-18 19:26:04 +00:00
imports = [
/etc/nixos/hardware-configuration.nix
../boot.nix
../common.nix
../gfx-intel.nix
../virtualbox.nix
../zerotier.nix
../i3/system.nix
];
}