2024-11-18 17:56:51 -05:00
|
|
|
|
# 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 = [ "xhci_pci" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" "wl" ];
|
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "/dev/sda2";
|
|
|
|
|
fsType = "btrfs";
|
2024-11-19 14:01:55 -05:00
|
|
|
|
options = [ "subvol=root" ];
|
2024-11-18 17:56:51 -05:00
|
|
|
|
};
|
|
|
|
|
|
2024-11-19 18:51:58 -05:00
|
|
|
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/8c7cfd8b-9b49-4f86-8019-3d4614920c19";
|
2024-11-18 17:56:51 -05:00
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
|
{ device = "/dev/sda1";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "/dev/sda2";
|
|
|
|
|
fsType = "btrfs";
|
2024-11-19 14:01:55 -05:00
|
|
|
|
options = [ "subvol=home" ];
|
2024-11-18 17:56:51 -05:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/nix" =
|
|
|
|
|
{ device = "/dev/sda2";
|
|
|
|
|
fsType = "btrfs";
|
2024-11-19 14:01:55 -05:00
|
|
|
|
options = [ "subvol=nix" ];
|
2024-11-18 17:56:51 -05:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/persist" =
|
|
|
|
|
{ device = "/dev/sda2";
|
|
|
|
|
fsType = "btrfs";
|
2024-11-19 14:01:55 -05:00
|
|
|
|
options = [ "subvol=persist" ];
|
2024-11-18 17:56:51 -05:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/var/log" =
|
|
|
|
|
{ device = "/dev/sda2";
|
|
|
|
|
fsType = "btrfs";
|
2024-11-19 14:01:55 -05:00
|
|
|
|
options = [ "subvol=log" ];
|
2024-11-18 17:56:51 -05:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
|
|
# 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.enp1s0f0.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.wlp0s20u1u2.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|