stockholm/makefu/1systems/x/x13/default.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

2021-01-27 21:59:21 +00:00
{ pkgs, lib, ... }:
# new zfs deployment
{
imports = [
./zfs.nix
./input.nix
2023-06-03 13:27:17 +00:00
./battery.nix
2021-01-27 21:59:21 +00:00
<stockholm/makefu/2configs/hw/bluetooth.nix>
<nixos-hardware/lenovo/thinkpad/l14/amd> # close enough
# <stockholm/makefu/2configs/hw/tpm.nix>
<stockholm/makefu/2configs/hw/ssd.nix>
# <stockholm/makefu/2configs/hw/xmm7360.nix>
2021-01-27 21:59:21 +00: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 13:27:17 +00: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;
hardware.opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
2021-01-27 21:59:21 +00: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 19:12:56 +00:00
2022-05-30 10:57:52 +00:00
services.fwupd.enable = true;
2021-01-27 21:59:21 +00:00
programs.light.enable = true;
users.groups.video = {};
2023-06-03 13:27:17 +00:00
users.groups.render = {};
users.users.makefu.extraGroups = [ "video" "render" ];
2021-05-25 07:51:36 +00:00
boot.extraModprobeConfig = ''
options thinkpad_acpi fan_control=1
'';
2021-01-27 21:59:21 +00:00
}