2024-02-26 20:06:58 +01:00
|
|
|
{ config, 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
|
|
|
|
../../profiles/graphical
|
2024-02-14 19:42:25 +01:00
|
|
|
./hardware-configuration.nix
|
2024-02-27 16:47:43 +01:00
|
|
|
./disko.nix
|
2024-02-05 22:22:40 +01:00
|
|
|
];
|
2024-02-26 20:06:58 +01:00
|
|
|
|
2024-03-27 23:39:09 +01:00
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
2024-02-26 20:06:58 +01:00
|
|
|
boot.extraModprobeConfig = ''
|
|
|
|
options i915 enable_guc=3
|
|
|
|
'';
|
|
|
|
boot.initrd.kernelModules = [ "i915" ];
|
|
|
|
boot.kernelParams = [
|
|
|
|
"intel_iommu=on"
|
|
|
|
"i915.enable_guc=3"
|
|
|
|
"nohz=on"
|
|
|
|
"irqaffinity=9-15"
|
|
|
|
"nohz_full=1-14"
|
|
|
|
"rcu_nocbs=0-8"
|
|
|
|
|
|
|
|
];
|
2024-02-14 19:42:25 +01:00
|
|
|
boot.loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
2024-02-26 20:06:58 +01:00
|
|
|
|
2024-02-14 19:42:25 +01:00
|
|
|
deployment = {
|
2024-02-28 16:20:45 +01:00
|
|
|
targetHost = null;
|
2024-02-14 19:42:25 +01:00
|
|
|
targetUser = "emily";
|
|
|
|
};
|
2024-02-26 20:06:58 +01:00
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
hardware.gpgSmartcards.enable = true;
|
|
|
|
hardware.nitrokey.enable = true;
|
|
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = [ pkgs.intel-media-driver pkgs.libvdpau-va-gl ];
|
|
|
|
};
|
|
|
|
hardware.sane = {
|
|
|
|
enable = true;
|
|
|
|
extraBackends = [ pkgs.utsushi ];
|
|
|
|
};
|
|
|
|
|
|
|
|
kyouma.machine-type.physical = true;
|
|
|
|
kyouma.machine-type.portable = true;
|
|
|
|
|
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
|
|
|
}
|