arcadia.nix (2212B)
1 # HTPC 2 3 { config, pkgs, lib, domain, machine, username, fullname, sshkey, sshport, timezone, privatekey, ... }: 4 5 let 6 home-manager = builtins.fetchTarball https://github.com/nix-community/home-manager/archive/master.tar.gz; 7 in 8 9 { 10 11 networking.hostName = "arcadia"; 12 13 imports = 14 [ 15 (import "${home-manager}/nixos") # Home-Manager 16 ../common/audio.nix 17 (import ../common/autologin.nix {inherit username;}) 18 ../common/dhcp.nix 19 ../common/flakes.nix 20 ../common/garbage.nix 21 (import ../common/hyprland.nix {inherit pkgs username;}) 22 (import ../common/kodi.nix {inherit pkgs username;}) 23 (import ../common/locale.nix {inherit config pkgs timezone;}) 24 ../common/mount-drives.nix 25 ../common/nfs.nix 26 ../common/packages.nix 27 (import ../common/ssh.nix {inherit username sshkey sshport privatekey;}) 28 (import ../common/syncthing.nix {inherit config pkgs username;}) 29 (import ../common/user.nix {inherit config pkgs username fullname;}) 30 ../scripts/htpc-launcher.nix 31 ]; 32 home-manager = { 33 backupFileExtension = "hm-bak"; 34 users.${username} = { pkgs, ... }: { 35 imports = [ 36 (import ../home/fish.nix {inherit pkgs domain;}) 37 ../home/ghostty.nix 38 ../home/hyprland.nix 39 (import ../home/kodi.nix {inherit username;}) 40 (import ../home/rclone.nix {inherit domain username sshport privatekey;}) 41 (import ../home/ssh.nix {inherit domain username sshport privatekey;}) 42 ]; 43 home.stateVersion = "24.11"; 44 }; 45 }; 46 47 # Hardware and system 48 boot = { 49 initrd = { 50 availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; 51 kernelModules = [ ]; 52 }; 53 kernelModules = [ "kvm-intel" ]; 54 extraModulePackages = [ ]; 55 loader = { 56 systemd-boot.enable = true; 57 efi.canTouchEfiVariables = true; 58 }; 59 }; 60 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 61 hardware = { 62 cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 63 graphics = { 64 enable = true; 65 extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl vaapiIntel ]; 66 }; 67 }; 68 69 system.stateVersion = "24.11"; 70 71 }