From 51d94760423581649a1c0b94701cf1622dac9aee Mon Sep 17 00:00:00 2001 From: andromeda Date: Wed, 31 Dec 2025 11:24:41 +0100 Subject: fix ly complaint, move sway_config to its own file --- users/andromeda/home.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'users/andromeda/home.nix') diff --git a/users/andromeda/home.nix b/users/andromeda/home.nix index 323a6b8..2e3ae66 100644 --- a/users/andromeda/home.nix +++ b/users/andromeda/home.nix @@ -6,7 +6,17 @@ ... }: let background-path = ".config/sway/background.png"; - sway_config = builtins.toFile "sway_config" '' + sway_config = + pkgs.substitute + { + src = ./sway_config; + substitutions = [ + "--replace" + "@backgroundImagePath@" + "${config.home.homeDirectory}/${background-path}" + ]; + }; + sway_config' = builtins.toFile "sway_config" '' set $mod Mod4 set $left h set $down j -- cgit v1.3