Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at mikoto 57 lines 2.0 kB view raw
1# Do not modify this file! It was generated by ‘nixos-generate-config’ 2# and may be overwritten by future invocations. Please make changes 3# to /etc/nixos/configuration.nix instead. 4{ config, lib, modulesPath, pkgs, ... }: 5 6{ 7 imports = 8 [ 9 (modulesPath + "/installer/scan/not-detected.nix") 10 ]; 11 12 boot.kernelPackages = pkgs.linuxPackages_latest; 13 boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 14 boot.initrd.kernelModules = [ "kvm-amd" "amdgpu" "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 15 boot.kernelModules = [ "kvm-amd" "amdgpu" "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 16 virtualisation.libvirtd = { 17 enable = true; 18 qemu = { 19 runAsRoot = false; 20 ovmf = { 21 enable = true; 22 }; 23 }; 24 }; 25 #boot.extraModulePackages = with config.boot.kernelPackages; [ ]; 26 boot.kernelParams = [ ]; 27 28 hardware.enableRedistributableFirmware = true; 29 30 fileSystems."/" = 31 { 32 device = "/dev/disk/by-uuid/07019c69-2597-410d-a8a0-a8ffb0f58883"; 33 fsType = "ext4"; 34 }; 35 36 fileSystems."/boot" = 37 { 38 device = "/dev/disk/by-uuid/4B85-C90A"; 39 fsType = "vfat"; 40 }; 41 42 swapDevices = [{ 43 device = "/swapfile"; 44 size = 32 * 1024; 45 }]; 46 47 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 48 # (the default) this is the recommended approach. When using systemd-networkd it's 49 # still possible to use this option, but it's recommended to use it in conjunction 50 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 51 networking.useDHCP = lib.mkDefault true; 52 # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; 53 # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; 54 55 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 56 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 57}