nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

arcadia.nix (1944B)


      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     ../scripts/seedy.nix
     27     ../common/user.nix
     28     ];
     29   home-manager.users.${username} = {pkgs, ...}: { imports = [
     30       ../home/alacritty.nix
     31       ../home/fish.nix
     32       ../home/hyprland.nix
     33       ../home/kodi.nix
     34       ../home/rclone.nix
     35       ../home/ssh.nix
     36       ../home/yt-dlp.nix
     37     ];
     38     home.stateVersion = "24.11";
     39   };
     40 
     41   # Hardware and system
     42   boot.initrd = { availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; };
     43   boot.kernelModules = [ "kvm-intel" ];
     44   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     45   hardware = {
     46     cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     47     graphics = {
     48       enable = true;
     49       extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl intel-vaapi-driver ];
     50     };
     51   };
     52 
     53   system.stateVersion = "24.11";
     54 
     55 }