From ef3e74c454723d77aeeb02a13a72d3d8c5d9987d Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 20 Jun 2024 07:42:16 +0200 Subject: [PATCH] Sync typo3-configuration to system location This is needed as php is not allowed to check home folder of user. That way changing the config will deploy it to the expected location. Maybe I should move the config to system, out of user. --- home/home.nix | 7 +++++++ home/xdg.nix | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/home/home.nix b/home/home.nix index e34bce7..acabc5a 100644 --- a/home/home.nix +++ b/home/home.nix @@ -1,6 +1,7 @@ { config ,pkgs + ,lib ,... }: @@ -101,6 +102,12 @@ in { tc = "tmux new-session -s "; }; + activation = { + provideTypo3Configuration = lib.hm.dag.entryAfter ["writeBoundary"] '' + run --quiet cp $VERBOSE_ARG -r $HOME/.config/nixpkgs/home/files/typo3-configuration/* /var/projects/own/typo3-configuration + ''; + }; + enableNixpkgsReleaseCheck = true; }; } diff --git a/home/xdg.nix b/home/xdg.nix index 38a772a..57c91c6 100644 --- a/home/xdg.nix +++ b/home/xdg.nix @@ -51,7 +51,6 @@ url = "https://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"; sha256 = "nzevVk7NJ9X2kVTXz+e6jesfYgyBuUzw6rH0IFx01fg="; }; - "typo3-configuration".source = ./files/typo3-configuration; }; desktopEntries = {