fix ly complaint, move sway_config to its own file

This commit is contained in:
andromeda
2025-12-31 11:24:41 +01:00
parent 4b8882d82d
commit 51d9476042
3 changed files with 85 additions and 1 deletions

View File

@@ -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