Fixed automatic mounting by using fileSystems instead of systemd.mounts

This commit is contained in:
2025-06-20 14:08:49 +03:00
parent 3e97855d0a
commit 016a6dbb7b
2 changed files with 16 additions and 7 deletions

View File

@@ -14,4 +14,20 @@
boot.extraModprobeConfig = ''
options nvidia NVreg_PreserveVideoMemoryAllocations=1
'';
# Automaticaly mount C drive
fileSystems."/mnt/c" = {
device = "/dev/nvme1n1p4";
fsType = "ntfs-3g";
options = [ "rw" "noatime" "uid=1000" ];
};
# Automatically mount E drive
fileSystems."/mnt/e" = {
device = "/dev/sda2";
fsType = "ntfs-3g";
options = [ "rw" "noatime" "uid=1000" ];
};
}

View File

@@ -65,11 +65,4 @@
serviceConfig = { Type = "oneshot"; User = "kyren"; };
};
###########################################################################
systemd.mounts = [
{ what = "/dev/nvme1n1p4"; where = "/mnt/c"; type = "ntfs"; options = "rw,noatime"; wantedBy = ["multi-user.target"]; }
{ what = "/dev/sda2"; where = "/mnt/e"; type = "ntfs"; options = "rw,noatime"; wantedBy = ["multi-user.target"]; }
];
}