tweaked automount.nix

This commit is contained in:
serenity-F 2025-03-25 12:50:18 +10:00
parent 345d35ef5c
commit a2e7501f23
2 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,20 @@
{ pkgs, flakePath, disksPath, primaryUser, ... }:
{
imports = [ ];
## Activation Scripts
## - these run after using `sudo nixos-rebuild switch --flake .#<hostname>`
## - assumes command is run from the flake directory
system.activationScripts.diff = {
supportsDryActivation = false;
## Prints diff of the nix store and a cute message if rebuild successful
text = ''
cp home/scripts/automount/Disks /home/${primaryUser}/
echo "disksPaths linked successfully <3"
'';
};
}