From 2eec0d84eee2c11ba9ac06eb074f07380e40c50b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 24 Feb 2022 23:11:54 +0100 Subject: gkleen@sif: element-desktop --- accounts/gkleen@sif/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 01232345..6a73eff0 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -59,6 +59,12 @@ let wrapProgram $out/bin/zulip \ --add-flags '--force-device-scale-factor=1.6' ''; + wrappedElementDesktop = pkgs.runCommand "${pkgs.element-desktop.name}-wrapped" { buildInputs = with pkgs; [ makeWrapper ]; } '' + mkdir -p "$out/bin" + install -m 0755 ${pkgs.element-desktop}/bin/element-desktop $out/bin/element-desktop + wrapProgram $out/bin/element-desktop \ + --add-flags '--force-device-scale-factor=1.6' + ''; in { imports = with flake.nixosModules.userProfiles.${userName}; [ mpv yt-dlp @@ -291,7 +297,7 @@ in { xmonad worktime fira-code-symbols emacsclientDesktopItem libreoffice xournalpp wrappedChrome nixos-shell virt-viewer freerdp gnome-icon-theme paper-icon-theme sshpassSecret - weechat helvum + weechat helvum wrappedElementDesktop ]; file = { -- cgit v1.2.3