tweaked automount.nix

This commit is contained in:
serenity-F 2025-03-25 14:02:29 +10:00
parent 83d1c50037
commit b193f5deb7
2 changed files with 13 additions and 18 deletions

View file

@ -11,19 +11,14 @@
supportsDryActivation = false;
## Prints diff of the nix store and a cute message if rebuild successful
text = ''
cd ~ && ln -s /run/media/${primaryUser}/ Disks
echo "disksPaths linked successfully <3"
'';
};
system.activationScripts.flakeLink = {
supportsDryActivation = false;
## Prints diff of the nix store and a cute message if rebuild successful
text = ''
cd ~ && runuser -u ${primaryUser} -- cp -r /home/${primaryUser}/flakes/nixdots/* ${flakePath}/
echo "flakePath linked successfully <3"
{
cd ~ && ln -s /run/media/${primaryUser}/ Disks &&
echo "disksPaths linked successfully <3"
} || {
echo "diskPaths linking failed </3"
echo "Disable this module if paths have already been linked."
echo "(run `cd ~/Disks` to see if paths are linked)"
}
'';
};