nixfiles/config/hosts/ryuuko/configuration.nix

70 lines
1.7 KiB
Nix

{ inputs, lib, pkgs, ... }: {
imports = [
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-extreme-gen4
../../common
../../profiles/graphical
../../profiles/physical.nix
./disko.nix
./hardware-configuration.nix
];
boot.extraModprobeConfig = ''
options i915 enable_guc=3
'';
boot.initrd.kernelModules = [ "i915" "amdgpu" ];
boot.initrd.supportedFilesystems = [ "btrfs" ];
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;
hardware.opengl = {
driSupport32Bit = true;
extraPackages = with pkgs; [
intel-media-driver
libvdpau-va-gl
rocmPackages.clr.icd
];
};
hardware.sane = {
enable = true;
extraBackends = [ pkgs.utsushi ];
};
kyouma.machine-type.portable = true;
networking.hostName = "ryuuko";
networking.firewall.allowedTCPPorts = [ 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 ];
networking.networkmanager.enable = true;
systemd.network.enable = lib.mkForce false;
services.avahi = {
enable = true;
ipv6 = true;
nssmdns4 = true;
publish.enable = true;
publish.userServices = true;
};
services.fprintd.enable = lib.mkForce false;
services.fstrim.enable = true;
services.openssh.enable = true;
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" ];
}