From 9585b35d5b4e91bb327e3eddb229d1b711eeec2f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 25 Aug 2025 22:21:16 +0900 Subject: hst/config: remove symlink field Closes #6. Signed-off-by: Ophestra --- nixos.nix | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'nixos.nix') diff --git a/nixos.nix b/nixos.nix index c2858e98..62e981f6 100644 --- a/nixos.nix +++ b/nixos.nix @@ -188,28 +188,29 @@ in src = "/etc/"; special = true; } - ]; - - symlink = [ - { - target = "/run/current-system"; - linkname = "*/run/current-system"; - } - ] - ++ optionals (isGraphical && config.hardware.graphics.enable) ( - [ - { - target = "/run/opengl-driver"; - linkname = config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver"."L+".argument; - } - ] - ++ optionals (app.multiarch && config.hardware.graphics.enable32Bit) [ { - target = "/run/opengl-driver-32"; - linkname = config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver-32"."L+".argument; + type = "link"; + dst = "/run/current-system"; + linkname = "/run/current-system"; + dereference = true; } ] - ); + ++ optionals (isGraphical && config.hardware.graphics.enable) ( + [ + { + type = "link"; + dst = "/run/opengl-driver"; + linkname = config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver"."L+".argument; + } + ] + ++ optionals (app.multiarch && config.hardware.graphics.enable32Bit) [ + { + type = "link"; + dst = "/run/opengl-driver-32"; + linkname = config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver-32"."L+".argument; + } + ] + ); }; }; -- cgit v1.3.1