rearranged persistant volumes mount points
parent
f20612525e
commit
c237ebbc31
|
@ -23,21 +23,21 @@ in {
|
||||||
options = [ "subvolid=5" "compress=zstd" ];
|
options = [ "subvolid=5" "compress=zstd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/persist" = {
|
"/mnt/persist" = {
|
||||||
device = "/dev/mapper/root";
|
device = "/dev/mapper/root";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=persist" "compress=zstd" ];
|
options = [ "subvol=persist" "compress=zstd" ];
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"/logs" = {
|
"/mnt/logs" = {
|
||||||
device = "/dev/mapper/root";
|
device = "/dev/mapper/root";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=logs" "compress=zstd" ];
|
options = [ "subvol=logs" "compress=zstd" ];
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"/data" = {
|
"/mnt/data" = {
|
||||||
device = "/dev/mapper/root";
|
device = "/dev/mapper/root";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=data" "compress=zstd" ];
|
options = [ "subvol=data" "compress=zstd" ];
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
home.persistence = {
|
home.persistence = {
|
||||||
"/data/${config.home.homeDirectory}" = {
|
"/mnt/data/${config.home.homeDirectory}" = {
|
||||||
directories = [
|
directories = [
|
||||||
"Audio"
|
"Audio"
|
||||||
"Calendars"
|
"Calendars"
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
allowOther = true;
|
allowOther = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"/persist/${config.home.homeDirectory}" = {
|
"/mnt/persist/${config.home.homeDirectory}" = {
|
||||||
directories = [
|
directories = [
|
||||||
".Slic3r"
|
".Slic3r"
|
||||||
".abook"
|
".abook"
|
||||||
|
|
|
@ -252,7 +252,7 @@
|
||||||
swapDevices = [{ device = "/swap/swapfile"; }];
|
swapDevices = [{ device = "/swap/swapfile"; }];
|
||||||
|
|
||||||
environment.persistence = {
|
environment.persistence = {
|
||||||
"/persist" = {
|
"/mnt/persist" = {
|
||||||
directories = [
|
directories = [
|
||||||
"/etc/NetworkManager/system-connections"
|
"/etc/NetworkManager/system-connections"
|
||||||
"/etc/nixos"
|
"/etc/nixos"
|
||||||
|
@ -271,7 +271,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/logs" = { directories = [ "/var/log" ]; };
|
"/mnt/logs" = { directories = [ "/var/log" ]; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
|
|
|
@ -32,14 +32,14 @@ in {
|
||||||
options = [ "subvolid=5" "compress=zstd" ];
|
options = [ "subvolid=5" "compress=zstd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/persist" = {
|
"/mnt/persist" = {
|
||||||
device = "/dev/mapper/user";
|
device = "/dev/mapper/user";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=persist" "compress=zstd" ];
|
options = [ "subvol=persist" "compress=zstd" ];
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"/data" = {
|
"/mnt/data" = {
|
||||||
device = "/dev/mapper/user";
|
device = "/dev/mapper/user";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=data" "compress=zstd" ];
|
options = [ "subvol=data" "compress=zstd" ];
|
||||||
|
@ -52,7 +52,7 @@ in {
|
||||||
options = [ "subvol=nix" "compress=zstd" ];
|
options = [ "subvol=nix" "compress=zstd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/logs" = {
|
"/mnt/logs" = {
|
||||||
device = "/dev/mapper/system";
|
device = "/dev/mapper/system";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=logs" "compress=zstd" ];
|
options = [ "subvol=logs" "compress=zstd" ];
|
||||||
|
|
Loading…
Reference in New Issue