2021-05-11 14:32:58 +07: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")
|
|
|
|
|
|
];
|
|
|
|
|
|
|
2021-05-15 08:25:24 +07:00
|
|
|
|
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "bcachefs" ];
|
2021-05-11 14:32:58 +07:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2021-05-15 08:25:24 +07:00
|
|
|
|
{ device = "none";
|
|
|
|
|
|
fsType = "tmpfs";
|
|
|
|
|
|
options = [ "defaults" "size=4G" "mode=755" ];
|
2021-05-11 14:32:58 +07:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
|
|
{ device = "/dev/disk/by-uuid/E8E8-E570";
|
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2021-05-15 08:25:24 +07:00
|
|
|
|
fileSystems."/mnt/bcachefs" =
|
|
|
|
|
|
{ device = "/dev/sda2";
|
|
|
|
|
|
fsType = "bcachefs";
|
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/nix" =
|
|
|
|
|
|
{ device = "/mnt/bcachefs/binds/nix";
|
|
|
|
|
|
fsType = "none";
|
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
|
{ device = "/mnt/bcachefs/binds/home";
|
|
|
|
|
|
fsType = "none";
|
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/var" =
|
|
|
|
|
|
{ device = "/mnt/bcachefs/binds/var";
|
|
|
|
|
|
fsType = "none";
|
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/root" =
|
|
|
|
|
|
{ device = "/mnt/bcachefs/binds/root";
|
|
|
|
|
|
fsType = "none";
|
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/etc/nixos" =
|
|
|
|
|
|
{ device = "/mnt/bcachefs/binds/etc_nixos";
|
|
|
|
|
|
fsType = "none";
|
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2021-05-11 14:32:58 +07:00
|
|
|
|
fileSystems."/mnt/hdd" =
|
|
|
|
|
|
{ device = "/dev/disk/by-uuid/d5e3cfe5-c73a-4695-b81b-fc0215d4cefe";
|
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2021-05-15 08:25:24 +07:00
|
|
|
|
swapDevices = [ ];
|
2021-05-11 14:32:58 +07:00
|
|
|
|
|
|
|
|
|
|
}
|