summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-09-30 16:37:26 +0200
committerAlan Pearce2019-09-30 16:37:26 +0200
commitf8bc3637e4e363449d8849a6361da55b0dff7662 (patch)
treec184c681621bff33680a09eb249b228b3d622f48 /modules
parentde5ffae0005076e9db33d62042de733cd5cf34d6 (diff)
downloadnixos-configuration-f8bc3637e4e363449d8849a6361da55b0dff7662.tar.lz
nixos-configuration-f8bc3637e4e363449d8849a6361da55b0dff7662.tar.zst
nixos-configuration-f8bc3637e4e363449d8849a6361da55b0dff7662.zip
user-interface: use makeDesktopItem
Diffstat (limited to 'modules')
-rw-r--r--modules/user-interface.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user-interface.nix b/modules/user-interface.nix
index 88dedfa..7c98d29 100644
--- a/modules/user-interface.nix
+++ b/modules/user-interface.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, lib, ... }:
+{ config, pkgs, lib, makeDesktopItem, ... }:
 
 let
   emacsPackage = import ../packages/emacs.nix {
@@ -15,7 +15,7 @@ let
       exec ${emacsPackage}/bin/emacsclient --alternate-editor ${emacsPackage}/bin/emacs "$@"
     fi
   '';
-  desktopApplicationFile = pkgs.writeTextFile {
+  desktopApplicationFile = makeDesktopItem {
     name = "emacsclient.desktop";
     destination = "/share/applications/emacsclient.desktop";
     text = ''