nix-configs

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

arcadia.nix (1993B)


      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/emulators.nix
     13     ../common/flakes.nix
     14     ../common/fonts.nix
     15     ../common/garbage.nix
     16     ../common/hyprland.nix
     17     ../common/kodi.nix
     18     ../common/locale.nix
     19     ../common/mount-drives.nix
     20     ../common/networking.nix
     21     ../common/nfs.nix
     22     ../common/packages.nix
     23     ../common/ssh.nix
     24     ../common/syncthing.nix
     25     ../common/user.nix
     26     ];
     27   home-manager.users.${username} = {pkgs, ...}: { imports = [
     28       ../home/alacritty.nix
     29       ../home/fish.nix
     30       ../home/hyprland.nix
     31       ../home/kodi.nix
     32       ../home/rclone.nix
     33       ../home/ssh.nix
     34       ../home/yt-dlp.nix
     35     ];
     36     home.stateVersion = "24.11";
     37   };
     38 
     39   # Hardware and system
     40   boot = {
     41     initrd = { availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; };
     42     kernelModules = [ "kvm-intel" ];
     43     loader = {
     44       systemd-boot.enable = true;
     45       efi.canTouchEfiVariables = true;
     46     };
     47   };
     48   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     49   hardware = {
     50     cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     51     graphics = {
     52       enable = true;
     53       extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl intel-vaapi-driver ];
     54     };
     55   };
     56 
     57   system.stateVersion = "24.11";
     58 
     59 }