66 lines
2.0 KiB
Nix
66 lines
2.0 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 = [ "nvme" "ahci" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{
|
||
device = "tmpfs";
|
||
fsType = "tmpfs";
|
||
options = [ "mode=0755" ];
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{
|
||
device = "/dev/disk/by-uuid/DCB2-4E87";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
fileSystems."/data" =
|
||
{
|
||
device = "/dev/disk/by-uuid/81342423-ba98-44eb-8b84-6e106d1c86c2";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=data" ];
|
||
};
|
||
|
||
boot.initrd.luks.devices."disk0-crypt" = {
|
||
device = "/dev/disk/by-uuid/87fa328c-ab54-4ef0-8b9d-40c5869dbc78";
|
||
allowDiscards = true;
|
||
};
|
||
boot.initrd.luks.devices."disk1-crypt" = {
|
||
device = "/dev/disk/by-uuid/9e9ced9d-f1c5-4b4e-9974-93724a6d9112";
|
||
allowDiscards = true;
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{
|
||
device = "/dev/disk/by-uuid/81342423-ba98-44eb-8b84-6e106d1c86c2";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nix" ];
|
||
};
|
||
|
||
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.eth0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|