nixos-config/1systems/x/x13/default.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

2023-06-13 00:30:12 +02:00
{ pkgs, lib, nixos-hardware, self, ... }:
2021-01-27 22:59:21 +01:00
# new zfs deployment
{
imports = [
./input.nix
2023-06-13 00:30:12 +02:00
./disk.nix
2023-06-03 15:27:17 +02:00
./battery.nix
2023-06-13 00:30:12 +02:00
(self + "/2configs/hw/bluetooth.nix")
(self + "/2configs/hw/tpm.nix")
(self + "/2configs/hw/ssd.nix")
# (self + "/2configs/hw/xmm7360.nix")
nixos-hardware.nixosModules.lenovo-thinkpad-l14-amd
2021-01-27 22:59:21 +01:00
];
boot.zfs.requestEncryptionCredentials = true;
networking.hostId = "f8b8e0a2";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# services.xserver.enable = lib.mkForce false;
2023-06-03 15:27:17 +02:00
services.xserver.videoDrivers = [ "amdgpu" ];
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = [ pkgs.amdvlk pkgs.rocm-opencl-icd pkgs.rocm-opencl-runtime ];
# For 32 bit applications
hardware.opengl.driSupport32Bit = true;
2023-06-13 00:30:12 +02:00
hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
2021-01-27 22:59:21 +01:00
# is required for amd graphics support ( xorg wont boot otherwise )
#boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = lib.mkForce pkgs.linuxPackages;
2021-03-12 20:12:56 +01:00
2022-05-30 12:57:52 +02:00
services.fwupd.enable = true;
2021-01-27 22:59:21 +01:00
programs.light.enable = true;
users.groups.video = {};
2023-06-03 15:27:17 +02:00
users.groups.render = {};
users.users.makefu.extraGroups = [ "video" "render" ];
2021-05-25 09:51:36 +02:00
boot.extraModprobeConfig = ''
options thinkpad_acpi fan_control=1
'';
2021-01-27 22:59:21 +01:00
}