I have been unable to figure out how to mount my internal drive which contains all my data without having to enter a password. The drive mounts fine but on every reboot I need to manually re-enter my password. I tried a number of solutions linked to “filesystems” but none worked. There must be a simpler way, right?
My failed solutions follow. Each caused the sytem to fail to boot.
fileSystems."/data" =
{ device = "/dev/disk/by-uuid/d2a55801-08e9-4bad-b905-4c83d7e76ad0";
fsType = "ext4";
# };
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/AF9C-DF7D";
fsType = "vfat";
# };
fileSystems."/mnt/wdblack" = {
fsType = "ext4";
# };
fileSystems."/mnt/wdblack" = {
fsType = "ext4"; # Use the actual filesystem type of /dev/sda1, replace if it's not ext4
options = [ "defaults" ]; # Add necessary mount options, 'defaults' is a placeholder
I am on
nixos
https://nixos.org/channels/nixos-23.05
.
No, this was what I found in the journalctl log.
I only ran
sudo -i nixos-rebuild switch
.