Skip to content

Instantly share code, notes, and snippets.

@architectureman
Created April 25, 2025 12:35
Show Gist options
  • Save architectureman/e348d45c180313abf3138e20788111c3 to your computer and use it in GitHub Desktop.
Save architectureman/e348d45c180313abf3138e20788111c3 to your computer and use it in GitHub Desktop.
NixOS04
# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ab76febd-076a-4a56-96f5-a1915ec0d35f";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-1fe358ef-2f60-45cb-9361-3bf0f72db1ea".device = "/dev/disk/by-uuid/1fe358ef-2f60-45cb-9361-3bf0f72db1ea";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E401-BE42";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4dd16df5-4656-45c1-a0b9-90168d2e5c37"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment