fix(home-manager): use mkIf to create desktop entries
This commit is contained in:
parent
6f3a124bc5
commit
5a852c55b1
2 changed files with 4 additions and 6 deletions
|
@ -15,7 +15,7 @@ in
|
|||
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
xdg.desktopEntries."org.qutebrowser.qutebrowser" = if cfg.enableNixGL then {
|
||||
xdg.desktopEntries."org.qutebrowser.qutebrowser" = mkIf cfg.enableNixGL {
|
||||
name = "QuteBrowser NixGL Powered";
|
||||
|
||||
exec = "${pkgs.nixgl.nixGLMesa}/bin/nixGLMesa qutebrowser %u";
|
||||
|
@ -29,8 +29,7 @@ in
|
|||
name = "Preferences";
|
||||
};
|
||||
};
|
||||
}
|
||||
else {};
|
||||
};
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
loadAutoconfig = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue