diff options
author | Julian T <julian@jtle.dk> | 2022-03-13 23:15:41 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2022-03-13 23:15:56 +0100 |
commit | 122fb9a33ec133070a4d0c9da34607b480e2a29e (patch) | |
tree | 720d9f34c33b2031a683863e37b81937ab02efae /pc_x230.nix | |
parent | 2025ebe1d91525c69b4b7d486da3a5d2f4278617 (diff) |
Add x230 config
Diffstat (limited to 'pc_x230.nix')
-rw-r--r-- | pc_x230.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/pc_x230.nix b/pc_x230.nix new file mode 100644 index 0000000..247f2b1 --- /dev/null +++ b/pc_x230.nix @@ -0,0 +1,54 @@ +{ config, lib, pkgs, ... }: + +{ + networking = { + hostName = "nixX230"; + + interfaces.enp2s25.useDHCP = true; + interfaces.wlp3s0.useDHCP = true; + }; + + networking = { + # We want to NAT container traffic + nat = { + enable = true; + internalInterfaces = [ "ve-test" ]; + externalInterface = "wlp3s0"; + }; + }; + + boot = { + loader.grub = { + device = "/dev/disk/by-id/wwn-0x50026b7682847b8f"; + enable = true; + }; + + initrd.luks.devices = { + lvmroot = { + device = "/dev/disk/by-uuid/676e4bca-b29f-4ec8-a701-59303489c402"; + preLVM = true; + }; + }; + }; + + hardware = { + acpilight.enable = true; + }; + + services = { + tlp = { + enable = true; + settings = { + START_CHARGE_THRESH_BAT0 = 90; + STOP_CHARGE_THRESH_BAT0 = 95; + }; + }; + fwupd.enable = true; + }; + + environment.systemPackages = with pkgs; [ + linuxPackages.acpi_call + + acpilight + ]; +} |