all repos — nixfiles @ f8bc3637e4e363449d8849a6361da55b0dff7662

System and user configuration, managed by nix and home-manager

user-interface: use makeDesktopItem
Alan Pearce alan@alanpearce.eu
Mon, 30 Sep 2019 16:37:26 +0200
commit

f8bc3637e4e363449d8849a6361da55b0dff7662

parent

de5ffae0005076e9db33d62042de733cd5cf34d6

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M modules/user-interface.nixmodules/user-interface.nix
@@ -1,4 +1,4 @@-{ config, pkgs, lib, ... }:
+{ config, pkgs, lib, makeDesktopItem, ... }:
 
 let
   emacsPackage = import ../packages/emacs.nix {
@@ -15,7 +15,7 @@ else       exec ${emacsPackage}/bin/emacsclient --alternate-editor ${emacsPackage}/bin/emacs "$@"
     fi
   '';
-  desktopApplicationFile = pkgs.writeTextFile {
+  desktopApplicationFile = makeDesktopItem {
     name = "emacsclient.desktop";
     destination = "/share/applications/emacsclient.desktop";
     text = ''