2024-05-29 21:10:12 +02:00
|
|
|
{ inputs, lib, pkgs, ... }: {
|
2024-02-05 22:22:40 +01:00
|
|
|
imports = [
|
2024-02-26 20:06:58 +01:00
|
|
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-extreme-gen4
|
2024-02-05 22:22:40 +01:00
|
|
|
../../common
|
2024-06-12 16:20:58 +02:00
|
|
|
../../profiles/physical.nix
|
2024-02-27 16:47:43 +01:00
|
|
|
./disko.nix
|
2024-06-12 16:20:58 +02:00
|
|
|
./hardware-configuration.nix
|
2024-02-05 22:22:40 +01:00
|
|
|
];
|
2024-02-26 20:06:58 +01:00
|
|
|
|
|
|
|
boot.extraModprobeConfig = ''
|
|
|
|
options i915 enable_guc=3
|
|
|
|
'';
|
2024-05-29 21:10:12 +02:00
|
|
|
boot.initrd.kernelModules = [ "i915" "amdgpu" ];
|
|
|
|
boot.initrd.supportedFilesystems = [ "btrfs" ];
|
2024-02-26 20:06:58 +01:00
|
|
|
boot.kernelParams = [
|
|
|
|
"intel_iommu=on"
|
|
|
|
"i915.enable_guc=3"
|
|
|
|
"nohz=on"
|
|
|
|
"irqaffinity=9-15"
|
|
|
|
"nohz_full=1-14"
|
|
|
|
"rcu_nocbs=0-8"
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
hardware.gpgSmartcards.enable = true;
|
|
|
|
hardware.nitrokey.enable = true;
|
|
|
|
|
2024-08-14 18:33:20 +02:00
|
|
|
hardware.graphics = {
|
|
|
|
enable = true;
|
|
|
|
enable32Bit = true;
|
2024-05-29 21:10:12 +02:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
intel-media-driver
|
|
|
|
libvdpau-va-gl
|
|
|
|
rocmPackages.clr.icd
|
|
|
|
];
|
2024-02-26 20:06:58 +01:00
|
|
|
};
|
|
|
|
hardware.sane = {
|
|
|
|
enable = true;
|
|
|
|
extraBackends = [ pkgs.utsushi ];
|
|
|
|
};
|
|
|
|
|
2024-09-10 12:02:18 +02:00
|
|
|
kyouma = {
|
|
|
|
graphical = {
|
|
|
|
enable = true;
|
|
|
|
compositor = "hyprland";
|
|
|
|
};
|
|
|
|
machine-type.portable = true;
|
|
|
|
};
|
2024-02-26 20:06:58 +01:00
|
|
|
|
2024-02-14 19:42:25 +01:00
|
|
|
networking.hostName = "ryuuko";
|
2024-02-26 20:06:58 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [ 22000 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 22000 ];
|
2024-02-14 19:42:25 +01:00
|
|
|
networking.networkmanager.enable = true;
|
2024-02-22 20:20:07 +01:00
|
|
|
systemd.network.enable = lib.mkForce false;
|
2024-02-26 20:06:58 +01:00
|
|
|
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
ipv6 = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
publish.enable = true;
|
|
|
|
publish.userServices = true;
|
|
|
|
};
|
2024-03-24 19:57:02 +01:00
|
|
|
services.fprintd.enable = lib.mkForce false;
|
2024-02-26 20:06:58 +01:00
|
|
|
services.fstrim.enable = true;
|
2024-02-14 19:42:25 +01:00
|
|
|
services.openssh.enable = true;
|
2024-02-26 20:06:58 +01:00
|
|
|
services.pcscd.enable = true;
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [ pkgs.hplip pkgs.brlaser ];
|
|
|
|
};
|
|
|
|
services.usbmuxd.enable = true;
|
|
|
|
|
|
|
|
users.mutableUsers = lib.mkForce true;
|
|
|
|
users.users.emily.extraGroups = [ "nitrokey" "scanner" "video" ];
|
2024-02-05 22:22:40 +01:00
|
|
|
}
|