summaryrefslogtreecommitdiff
path: root/pc_x230.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pc_x230.nix')
-rw-r--r--pc_x230.nix54
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
+ ];
+}