# # Hardware settings for Teclast F5 10" Laptop # NixOS @ sda2 # # flake.nix # └─ ./hosts # └─ ./laptop # └─ hardware-configuration.nix * # # 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") ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" "rtsx_usb_sdmmc" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; fileSystems."/" = { device = "/dev/mapper/root"; fsType = "btrfs"; options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@" ]; }; boot.initrd.luks = { fido2Support = true; devices."root" = { device = "/dev/disk/by-uuid/75eccc7f-30b0-4fe8-8f82-90edaf284cd5"; allowDiscards = true; }; }; fileSystems."/home" = { device = "/dev/mapper/root"; fsType = "btrfs"; options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@home" ]; }; fileSystems."/opt" = { device = "/dev/mapper/root"; fsType = "btrfs"; options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@opt" ]; }; fileSystems."/srv" = { device = "/dev/mapper/root"; fsType = "btrfs"; options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@srv" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-label/BOOT"; fsType = "vfat"; }; swapDevices = [ ]; networking = { useDHCP = false; # Deprecated hostName = "nbf5"; networkmanager.enable = true; interfaces = { wlp1s0 = { useDHCP = true; # For versatility sake, manually edit IP on nm-applet. #ipv4.addresses = [ { # address = "192.168.0.51"; # prefixLength = 24; #} ]; }; # wlo1 = { # useDHCP = true; # #ipv4.addresses = [ { # # address = "192.168.0.51"; # # prefixLength = 24; # #} ]; # }; }; #defaultGateway = "192.168.0.1"; #nameservers = [ "192.168.0.4" ]; #firewall = { # enable = false; # #allowedUDPPorts = [ 53 67 ]; # #allowedTCPPorts = [ 53 80 443 9443 ]; #}; }; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; }