diff options
author | lassulus <lassulus@lassul.us> | 2017-12-05 18:46:48 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-12-05 18:46:48 +0100 |
commit | 8030352c450432a0cee14f561241831875f8399b (patch) | |
tree | 832fc539497da14ec7d90e1540cb8093ca63cfbd /lass/3modules/xresources.nix | |
parent | 18fad9c618be468d3a8e902ee2e23143e598163c (diff) | |
parent | 704096c93e91f0b71d257028401b52d6da03c073 (diff) |
Merge branch 'prism/master' into HEAD
Diffstat (limited to 'lass/3modules/xresources.nix')
-rw-r--r-- | lass/3modules/xresources.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lass/3modules/xresources.nix b/lass/3modules/xresources.nix index 074963022..017dbff2b 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,16 @@ 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 + ${pkgs.xorg.xrdb}/bin/xrdb -merge ${xres} ''; + environment.systemPackages = [ + (pkgs.writeDashBin "updateXresources" '' + ${pkgs.xorg.xrdb}/bin/xrdb -merge ${xres} + '') + ]; }; - } |