rebuilding minimised nix files
This commit is contained in:
+307
-303
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,20 @@
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.bash ];
|
||||
home.activation.recreateConfig = {
|
||||
text = ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
set -euo pipefail
|
||||
echo "Running post-activation script..."
|
||||
"${flakeRoot}/assets/scripts/recreate_config.sh"
|
||||
SOURCE_DIR="${flakeRoot}/assets/copy_stuff"
|
||||
DEST_DIR="$HOME"
|
||||
if [ ! -d "$SOURCE_DIR" ]; then
|
||||
echo "Error: Source directory $SOURCE_DIR does not exist."
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p "$DEST_DIR"
|
||||
rsync -av --no-group --no-owner --delete "$SOURCE_DIR/" "$DEST_DIR/"
|
||||
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
|
||||
hyprctl reload
|
||||
'';
|
||||
deps = [ pkgs.bash ];
|
||||
deps = [ pkgs.bash pkgs.rsync ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user