arcadia.nix (1919B)
1 # HTPC 2 3 { config, pkgs, lib, fullname, username, domain, email, sshkey, sshport, timezone, postcode, address, htpasswd, vpnusername, vpnpassword, todosecret, privatekey, matrixuser, matrixserver, ... }: 4 5 let machine = "arcadia"; in { 6 7 imports = [ 8 (import ../common/variables.nix { inherit machine fullname username domain email sshkey sshport timezone postcode address htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; }) 9 (import ../common/home-manager.nix { inherit machine fullname username domain email sshkey sshport timezone postcode address htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; }) 10 ../common/audio.nix 11 ../common/autologin.nix 12 ../common/boot-systemd.nix 13 ../common/emulators.nix 14 ../common/flakes.nix 15 ../common/fonts.nix 16 ../common/garbage.nix 17 ../common/hyprland.nix 18 ../common/kodi.nix 19 ../common/locale.nix 20 ../common/mount-drives.nix 21 ../common/networking.nix 22 ../common/nfs.nix 23 ../common/packages.nix 24 ../common/ssh.nix 25 ../common/syncthing.nix 26 ../common/user.nix 27 ]; 28 home-manager.users.${username} = {pkgs, ...}: { imports = [ 29 ../home/alacritty.nix 30 ../home/fish.nix 31 ../home/hyprland.nix 32 ../home/kodi.nix 33 ../home/rclone.nix 34 ../home/ssh.nix 35 ../home/yt-dlp.nix 36 ]; 37 home.stateVersion = "24.11"; 38 }; 39 40 # Hardware and system 41 boot.initrd = { availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; }; 42 boot.kernelModules = [ "kvm-intel" ]; 43 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 44 hardware = { 45 cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 46 graphics = { 47 enable = true; 48 extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl intel-vaapi-driver ]; 49 }; 50 }; 51 52 system.stateVersion = "24.11"; 53 54 }