summaryrefslogtreecommitdiff
path: root/users/andromeda/home.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2025-12-31 11:24:41 +0100
committerandromeda <andromeda@lenovo>2025-12-31 11:24:41 +0100
commit51d94760423581649a1c0b94701cf1622dac9aee (patch)
tree59eacf49698b77c084af7c4267d9d9809762e85c /users/andromeda/home.nix
parent4b8882d82dcc8667d2b1276d65e43d081c5fa868 (diff)
fix ly complaint, move sway_config to its own file
Diffstat (limited to 'users/andromeda/home.nix')
-rw-r--r--users/andromeda/home.nix12
1 files changed, 11 insertions, 1 deletions
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