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
|
## (future) Flake path
|
||||||
"SerenityOS" = {
|
#"SerenityOS" = {
|
||||||
source = ./SerenityOS;
|
#source = ./SerenityOS;
|
||||||
target = "${flakePath}";
|
#target = "${flakePath}";
|
||||||
#recursive = true;
|
#recursive = true;
|
||||||
};
|
#};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,19 +11,14 @@
|
||||||
supportsDryActivation = false;
|
supportsDryActivation = false;
|
||||||
## Prints diff of the nix store and a cute message if rebuild successful
|
## Prints diff of the nix store and a cute message if rebuild successful
|
||||||
text = ''
|
text = ''
|
||||||
cd ~ && ln -s /run/media/${primaryUser}/ Disks
|
{
|
||||||
|
cd ~ && ln -s /run/media/${primaryUser}/ Disks &&
|
||||||
echo "disksPaths linked successfully <3"
|
echo "disksPaths linked successfully <3"
|
||||||
'';
|
} || {
|
||||||
};
|
echo "diskPaths linking failed </3"
|
||||||
|
echo "Disable this module if paths have already been linked."
|
||||||
system.activationScripts.flakeLink = {
|
echo "(run `cd ~/Disks` to see if paths are linked)"
|
||||||
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"
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue