Serenity/home/scripts/automount/postActivation.nix
2025-03-25 12:50:18 +10:00

20 lines
515 B
Nix

{ 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"
'';
};
}