rearranged persistant volumes mount points

feat/kile-v2
Ricard Illa 2022-11-13 15:59:57 +01:00
parent f20612525e
commit c237ebbc31
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
4 changed files with 10 additions and 10 deletions

View File

@ -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" ];

View File

@ -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"

View File

@ -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.

View File

@ -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" ];