From b193f5deb7862e894ee8d0e91bf9c40c8e2f3934 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Tue, 25 Mar 2025 14:02:29 +1000 Subject: [PATCH] tweaked `automount.nix` --- home/scripts/automount/default.nix | 10 +++++----- home/scripts/automount/postActivation.nix | 21 ++++++++------------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/home/scripts/automount/default.nix b/home/scripts/automount/default.nix index 06a291a..3ac3de8 100755 --- a/home/scripts/automount/default.nix +++ b/home/scripts/automount/default.nix @@ -27,11 +27,11 @@ #}; ## (future) Flake path - "SerenityOS" = { - source = ./SerenityOS; - target = "${flakePath}"; - #recursive = true; - }; + #"SerenityOS" = { + #source = ./SerenityOS; + #target = "${flakePath}"; + #recursive = true; + #}; }; diff --git a/home/scripts/automount/postActivation.nix b/home/scripts/automount/postActivation.nix index 8b3710c..f519b70 100644 --- a/home/scripts/automount/postActivation.nix +++ b/home/scripts/automount/postActivation.nix @@ -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