hosts/Infini-FRAMEWORK: setup root on tmpfs
This commit is contained in:
parent
fd9195a45a
commit
027971bb9a
2 changed files with 50 additions and 9 deletions
|
@ -21,6 +21,19 @@
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
|
|
||||||
|
environment.persistence."/persist" = {
|
||||||
|
directories = [
|
||||||
|
"/home"
|
||||||
|
"/var/log"
|
||||||
|
"/var/lib/bluetooth"
|
||||||
|
"/var/lib/systemd/coredump"
|
||||||
|
];
|
||||||
|
|
||||||
|
files = [
|
||||||
|
"/etc/machine-id"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
networking.interfaces.wlp170s0.useDHCP = true;
|
networking.interfaces.wlp170s0.useDHCP = true;
|
||||||
|
|
||||||
hardware.video.hidpi.enable = false;
|
hardware.video.hidpi.enable = false;
|
||||||
|
|
|
@ -13,16 +13,44 @@
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems =
|
||||||
device = "/dev/disk/by-uuid/b99971c6-bdd2-4c55-8992-72d17c19e4b1";
|
let
|
||||||
fsType = "btrfs";
|
uuid = uuid: "/dev/disk/by-uuid/${uuid}";
|
||||||
options = [ "subvol=subvolumes/root" "autodefrag" "noatime" ];
|
in
|
||||||
};
|
{
|
||||||
|
"/" = {
|
||||||
|
device = "none";
|
||||||
|
fsType = "tmpfs";
|
||||||
|
options = [ "defaults" "size=4G" "mode=755" ];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/boot/efi" = {
|
"/persist" = {
|
||||||
device = "/dev/disk/by-uuid/3FC9-0182";
|
device = uuid "a44af0ff-5667-465d-b80a-1934d1aab8d9";
|
||||||
fsType = "vfat";
|
fsType = "btrfs";
|
||||||
};
|
options = [ "subvol=root" "autodefrag" "noatime" ];
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"/nix" = {
|
||||||
|
device = uuid "a44af0ff-5667-465d-b80a-1934d1aab8d9";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=nix" "autodefrag" "noatime" ];
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"/boot" = {
|
||||||
|
device = uuid "a44af0ff-5667-465d-b80a-1934d1aab8d9";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=boot" "autodefrag" "noatime" ];
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"/boot/efi" = {
|
||||||
|
device = uuid "3FC9-0182";
|
||||||
|
fsType = "vfat";
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [{ device = "/dev/disk/by-uuid/28672ffb-9f1c-462b-b49d-8a14b3dd72b3"; }];
|
swapDevices = [{ device = "/dev/disk/by-uuid/28672ffb-9f1c-462b-b49d-8a14b3dd72b3"; }];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue