diff options
author | tv <tv@krebsco.de> | 2020-10-03 03:23:18 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-10-03 03:26:37 +0200 |
commit | 14d51411fac831d06530a2192b35e3fbd87de30e (patch) | |
tree | 7b4107406d305e4cf8b534bce5ac9fab05838022 /tv/2configs | |
parent | 74a6276be87fd307bddb7094caea6c2635f61b9d (diff) |
tv xmonad: read screen/font width from build env
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/xserver/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tv/2configs/xserver/default.nix b/tv/2configs/xserver/default.nix index 4e9e307..256604a 100644 --- a/tv/2configs/xserver/default.nix +++ b/tv/2configs/xserver/default.nix @@ -6,6 +6,12 @@ let configDir = "/var/empty"; dataDir = "/run/xdg/${cfg.user.name}/xmonad"; user = config.krebs.build.user; + xmonad.pkg = pkgs.haskellPackages.xmonad-tv.overrideAttrs (_: { + XMONAD_BUILD_SCREEN_WIDTH = 1366; + XMONAD_BUILD_TERM_FONT_WIDTH = 6; + XMONAD_BUILD_TERM_FONT = "-*-clean-*-*-*-*-*-*-*-*-*-*-iso10646-1"; + XMONAD_BUILD_TERM_PADDING = 2; + }); }; in { @@ -51,7 +57,7 @@ in { systemd.services.display-manager.enable = false; systemd.services.xmonad = let - xmonad = "${pkgs.haskellPackages.xmonad-tv}/bin/xmonad"; + xmonad = "${cfg.xmonad.pkg}/bin/xmonad"; xmonad-start = pkgs.writeDash "xmonad-start" '' ${pkgs.coreutils}/bin/mkdir -p "$XMONAD_CACHE_DIR" ${pkgs.coreutils}/bin/mkdir -p "$XMONAD_CONFIG_DIR" |