diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/rofi.nix | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gui/rofi.nix b/gui/rofi.nix index 034abdc..99826e4 100644 --- a/gui/rofi.nix +++ b/gui/rofi.nix @@ -1,9 +1,9 @@ { config, pkgs, ... }: let - hidpiExtraConfig = if config.custom.hidpi then '' - rofi.dpi: 160 - '' else ""; + hidpiExtraConfig = if config.custom.hidpi then { + dpi = 160; + } else { }; in { programs.rofi = { @@ -52,12 +52,11 @@ in { }; }; - extraConfig = '' - rofi.modi: combi - rofi.combi-modi: windowcd,drun,ssh - rofi.terminal: kitty - rofi.ssh-command: {terminal} {ssh-client} {host} - ${hidpiExtraConfig} - ''; + extraConfig = { + modi = "combi"; + combi-modi = "windowcd,drun,ssh"; + terminal = "kitty"; + ssh-command = "{terminal} {ssh-client} {host}"; + } // hidpiExtraConfig; }; } |