Replaced manual mounting in .zshrc with better mounting using systemd
This commit is contained in:
5
.zshrc
5
.zshrc
@@ -120,11 +120,6 @@ if [ ! -f "$MARKER_FILE" ]; then
|
||||
# Start linkwarden
|
||||
(pushd $HOME/personal/linkwarden > /dev/null && docker compose up -d > /dev/null && popd) &>/dev/null
|
||||
|
||||
# Automatically mount windows drives
|
||||
sudo mkdir -p /mnt/c /mnt/e
|
||||
sudo ntfs-3g /dev/nvme1n1p4 /mnt/c
|
||||
sudo ntfs-3g /dev/sda2 /mnt/e
|
||||
|
||||
touch "$MARKER_FILE"
|
||||
fi
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
../modules/development.nix
|
||||
../modules/gaming.nix
|
||||
../modules/secrets.nix
|
||||
../modules/timers.nix
|
||||
../modules/systemd.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
|
||||
@@ -65,4 +65,11 @@
|
||||
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"]; }
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user