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" ];
};
"/persist" = {
"/mnt/persist" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" ];
neededForBoot = true;
};
"/logs" = {
"/mnt/logs" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=logs" "compress=zstd" ];
neededForBoot = true;
};
"/data" = {
"/mnt/data" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=data" "compress=zstd" ];

View File

@ -44,7 +44,7 @@
];
home.persistence = {
"/data/${config.home.homeDirectory}" = {
"/mnt/data/${config.home.homeDirectory}" = {
directories = [
"Audio"
"Calendars"
@ -66,7 +66,7 @@
allowOther = true;
};
"/persist/${config.home.homeDirectory}" = {
"/mnt/persist/${config.home.homeDirectory}" = {
directories = [
".Slic3r"
".abook"

View File

@ -252,7 +252,7 @@
swapDevices = [{ device = "/swap/swapfile"; }];
environment.persistence = {
"/persist" = {
"/mnt/persist" = {
directories = [
"/etc/NetworkManager/system-connections"
"/etc/nixos"
@ -271,7 +271,7 @@
];
};
"/logs" = { directories = [ "/var/log" ]; };
"/mnt/logs" = { directories = [ "/var/log" ]; };
};
# Open ports in the firewall.

View File

@ -32,14 +32,14 @@ in {
options = [ "subvolid=5" "compress=zstd" ];
};
"/persist" = {
"/mnt/persist" = {
device = "/dev/mapper/user";
fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" ];
neededForBoot = true;
};
"/data" = {
"/mnt/data" = {
device = "/dev/mapper/user";
fsType = "btrfs";
options = [ "subvol=data" "compress=zstd" ];
@ -52,7 +52,7 @@ in {
options = [ "subvol=nix" "compress=zstd" ];
};
"/logs" = {
"/mnt/logs" = {
device = "/dev/mapper/system";
fsType = "btrfs";
options = [ "subvol=logs" "compress=zstd" ];