{ config, pkgs, lib, ... }: let settings = import ../settings.nix; # The assets folder from the project root assetsPath = ../assets; in { # Use tmpfiles.rules to create the symlink at boot/activation # L+ forces the creation of the symlink, removing existing file/dir if necessary systemd.tmpfiles.rules = [ "L+ /home/${settings.username}/Assets - - - - ${assetsPath}" ]; }