diff --git a/modules/nixos/tmpfiles.nix b/modules/nixos/tmpfiles.nix index 6ebd14c9..7806dbcf 100644 --- a/modules/nixos/tmpfiles.nix +++ b/modules/nixos/tmpfiles.nix @@ -112,7 +112,8 @@ ${scriptFail} else if [[ ! -L ${escapeShellArg config.path} || -z ${escapeShellArg config.noOverwrite} ]]; then - ln -s${relativeFlag}fT ${escapeShellArg config.src} ${escapeShellArg config.path}${scriptCatch} + ln -s${relativeFlag}fT ${escapeShellArg config.src} ${escapeShellArg config.path} && + ${chown} -h${scriptCatch} fi fi ''; diff --git a/nixos/kyuuto/opl.nix b/nixos/kyuuto/opl.nix index 1dec7b2d..895c870f 100644 --- a/nixos/kyuuto/opl.nix +++ b/nixos/kyuuto/opl.nix @@ -80,6 +80,8 @@ in { "${cfg.gameLibraryDir}/games.bin" = { type = "symlink"; src = cfg.rootDir + "/games.bin"; + owner = mkDefault "admin"; + group = mkDefault "kyuuto"; }; }; files = {