tweaked automount.nix
This commit is contained in:
parent
83d1c50037
commit
b193f5deb7
2 changed files with 13 additions and 18 deletions
|
|
@ -27,11 +27,11 @@
|
|||
#};
|
||||
|
||||
## (future) Flake path
|
||||
"SerenityOS" = {
|
||||
source = ./SerenityOS;
|
||||
target = "${flakePath}";
|
||||
#recursive = true;
|
||||
};
|
||||
#"SerenityOS" = {
|
||||
#source = ./SerenityOS;
|
||||
#target = "${flakePath}";
|
||||
#recursive = true;
|
||||
#};
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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)"
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue