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-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
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-27 16:47:43 +01:00
targetHost = "192.168.122.152";
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;
};
services.fprintd.enable = true;
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
}