# Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; # Use the systemd-boot EFI boot loader. boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "uas" "usbcore"]; # initrd.kernelModules = ["i915"]; kernelModules = ["kvm-amd" "iscsi_tcp"]; extraModulePackages = []; kernelParams = [ # "i915.enable_guc=1" ]; # kernelPackages = pkgs.linuxPackages_latest; }; fileSystems."/" = { device = "/dev/disk/by-label/SYSTEM"; fsType = "btrfs"; options = ["subvol=@nixos" "noatime" "compress=zstd"]; }; fileSystems."/raid" = { device = "192.168.1.146:/mnt/raid"; fsType = "nfs"; # options = ["credentials=/etc/nixos/smb-secrets" "_netdev" "uid=1000" "gid=1000" "file_mode=0777" "dir_mode=0777"]; }; # fileSystems."/samba" = { # device = "//192.168.2.146/raid"; # fsType = "cifs"; # options = ["credentials=/etc/nixos/smb-secrets" "_netdev"]; # }; fileSystems."/nix" = { device = "/dev/disk/by-label/SYSTEM"; fsType = "btrfs"; options = ["subvol=@nix" "noatime" "compress=zstd"]; }; fileSystems."/home" = { device = "/dev/disk/by-label/SYSTEM"; fsType = "btrfs"; options = ["subvol=@home" "noatime" "compress=zstd"]; }; fileSystems."/boot" = { device = "/dev/disk/by-label/ESP"; fsType = "vfat"; }; networking.useDHCP = lib.mkDefault true; networking.networkmanager.enable = lib.mkDefault true; # Easiest to use and most distros use this by default. # BTRFS scrub services.btrfs.autoScrub.enable = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware = { enableRedistributableFirmware = true; graphics = { enable = true; extraPackages = with pkgs; [ vpl-gpu-rt intel-media-driver libvdpau-va-gl ]; }; }; }