61 lines
1.6 KiB
Nix
61 lines
1.6 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, ... }:
|
||
|
||
let
|
||
uuid = uuid: "/dev/disk/by-uuid/${uuid}";
|
||
in
|
||
{
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "ahci" "usbhid" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ "usb_storage" ];
|
||
boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.kernelParams = [ "boot.shell_on_fail" ];
|
||
boot.supportedFilesystems = [ "btrfs" ];
|
||
|
||
fileSystems =
|
||
let
|
||
main = uuid "2a87bd84-c453-4b76-969c-e0653391131e";
|
||
in
|
||
{
|
||
"/" = {
|
||
device = "none";
|
||
fsType = "tmpfs";
|
||
options = [ "defaults" "size=4G" "mode=755" ];
|
||
};
|
||
|
||
"/persist" = {
|
||
device = main;
|
||
fsType = "btrfs";
|
||
options = [ "subvol=root" "autodefrag" "noatime" "ssd" ];
|
||
neededForBoot = true;
|
||
};
|
||
|
||
"/nix" = {
|
||
device = main;
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nix" "autodefrag" "noatime" "ssd" ];
|
||
neededForBoot = true;
|
||
};
|
||
|
||
"/boot" = {
|
||
device = main;
|
||
fsType = "btrfs";
|
||
options = [ "subvol=boot" "autodefrag" "noatime" "ssd" ];
|
||
neededForBoot = true;
|
||
};
|
||
|
||
"/boot/efi" = {
|
||
device = uuid "0339-DFBA";
|
||
fsType = "vfat";
|
||
neededForBoot = true;
|
||
};
|
||
};
|
||
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
}
|