1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/hosts/ryuuko/configuration.nix

76 lines
1.8 KiB
Nix
Raw Normal View History

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
../../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
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"
];
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
hardware.bluetooth.enable = true;
hardware.cpu.intel.updateMicrocode = true;
hardware.gpgSmartcards.enable = true;
hardware.nitrokey.enable = true;
hardware.opengl = {
driSupport32Bit = 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 ];
};
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
}