From 016a6dbb7b84639a326a6bc6896d1e3101ac39d7 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 20 Jun 2025 14:08:49 +0300 Subject: Fixed automatic mounting by using fileSystems instead of systemd.mounts --- modules/desktop.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules/desktop.nix') diff --git a/modules/desktop.nix b/modules/desktop.nix index efbd4fc..f819186 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -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" ]; + }; + } -- cgit v1.3.1