diff options
author | lassulus <lassulus@lassul.us> | 2017-11-29 15:39:14 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-11-29 16:09:24 +0100 |
commit | 613ee4c9ba347cd6b0c96b1193c8cc34451f2c63 (patch) | |
tree | f0323a9b59f8700860d70ebe8938d70eea139d7a /lass/3modules | |
parent | 5014ba291dce70a8b4ffb36ddc0d9cd3a45aa6e4 (diff) |
l: refactor xresources
Diffstat (limited to 'lass/3modules')
-rw-r--r-- | lass/3modules/xresources.nix | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lass/3modules/xresources.nix b/lass/3modules/xresources.nix index 074963022..629b2303c 100644 --- a/lass/3modules/xresources.nix +++ b/lass/3modules/xresources.nix @@ -4,16 +4,13 @@ #prefix with Attribute Name #ex: urxvt -# -# with builtins; with lib; let - inherit (import ../../tv/4lib { inherit pkgs lib; }) shell-escape; - inherit (pkgs) writeScript; + inherit (pkgs) writeScript writeText; in @@ -46,12 +43,11 @@ in config = let cfg = config.services.xresources; - xres = concatStringsSep "\n" (attrValues cfg.resources); + xres = writeText "xresources" (concatStringsSep "\n" (attrValues cfg.resources)); in mkIf cfg.enable { services.xserver.displayManager.sessionCommands = '' - echo ${shell-escape xres} | xrdb -merge + xrdb -merge ${xres} ''; }; - } |