summaryrefslogtreecommitdiff
path: root/pc_t14.nix
blob: fa536f0fbfd501e05bb8ac33159ce0d76ff23555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ config, pkgs, ... }:

{
    networking = {
        hostName = "nixT14s";

        interfaces.enp2s0f0.useDHCP = true;
        interfaces.wlp3s0.useDHCP = true;
    };

    boot = {
        kernelPackages = pkgs.linuxPackages_latest;
        loader = {
            systemd-boot.enable = true;

            efi.canTouchEfiVariables = true;
            efi.efiSysMountPoint = "/boot";
        };
        initrd.luks.devices = {
            lvmroot = {
                device = "/dev/disk/by-uuid/3aa2923c-928d-4050-82dc-21be53b2af8e";
                preLVM = true;
            };
        };

    };

    hardware.acpilight.enable = true;

    services.tlp.enable = true;

    environment.systemPackages = with pkgs; [
        linuxPackages.acpi_call
    ];
}