diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index c6edaf2cb..0ef445499 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -40,9 +40,11 @@ in // hyprlandConfs; }; - # Manually copy files using a shell command - system.activationScripts.copyHyprlandFiles = '' - mkdir -p ~/.config/hypr/ - cp ${flakeRoot}/assets/hyprland/conf/hypr/* ~/.config/hypr/ - ''; + # Create a derivation to copy files + environment.systemPackages = with pkgs; [ + (pkgs.writeShellScriptBin "copy-hyprland-files" '' + mkdir -p ~/.config/hypr/ + cp ${flakeRoot}/assets/hyprland/conf/hypr/* ~/.config/hypr/ + '') + ]; }