mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-10-18 21:15:22 +05:00
53 lines
1.8 KiB
Nix
53 lines
1.8 KiB
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 = [ "xhci_pci" "ehci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
|||
|
boot.initrd.kernelModules = [ "usb_storage" ];
|
|||
|
boot.initrd.luks.devices = {
|
|||
|
hdd = {
|
|||
|
device = "/dev/disk/by-uuid/157d0eca-01bf-4dfc-88ff-12eb1e1aff69";
|
|||
|
};
|
|||
|
ssd = {
|
|||
|
device = "/dev/disk/by-uuid/d13d7d84-5fa2-4b0f-abcc-5834c75b4cb6";
|
|||
|
};
|
|||
|
};
|
|||
|
boot.kernelModules = [ "kvm-intel" ];
|
|||
|
boot.extraModulePackages = [ ];
|
|||
|
|
|||
|
fileSystems."/" =
|
|||
|
{ device = "/dev/disk/by-uuid/a4660ab9-09b8-45c2-a3fd-5f46300df9ff";
|
|||
|
fsType = "btrfs";
|
|||
|
options = [ "compress=zstd" ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/boot" =
|
|||
|
{ device = "/dev/disk/by-uuid/D70C-F6A7";
|
|||
|
fsType = "vfat";
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/hdd" =
|
|||
|
{ device = "/dev/disk/by-uuid/24388265-a28d-4876-bc15-ad753de1ea2b";
|
|||
|
fsType = "btrfs";
|
|||
|
options = [ "compress=zstd" ];
|
|||
|
};
|
|||
|
|
|||
|
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.enp7s0.useDHCP = lib.mkDefault true;
|
|||
|
|
|||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|||
|
}
|