summaryrefslogtreecommitdiff
path: root/users/andromeda/home.nix
diff options
context:
space:
mode:
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