summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-01-24 15:16:22 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-01-24 15:16:22 +0100
commitb568758a85a08be2c0e635b995a1ffe1a05db4d4 (patch)
tree40a66060d6a9a65b2c1bbec62b8088515d7857e5 /accounts/gkleen@sif/default.nix
parent9bf0e83492dc3e6c3826982aac90382fb299b6f5 (diff)
downloadnixos-b568758a85a08be2c0e635b995a1ffe1a05db4d4.tar
nixos-b568758a85a08be2c0e635b995a1ffe1a05db4d4.tar.gz
nixos-b568758a85a08be2c0e635b995a1ffe1a05db4d4.tar.bz2
nixos-b568758a85a08be2c0e635b995a1ffe1a05db4d4.tar.xz
nixos-b568758a85a08be2c0e635b995a1ffe1a05db4d4.zip
gkleen@sif: emacsclient desktop item
Diffstat (limited to 'accounts/gkleen@sif/default.nix')
-rw-r--r--accounts/gkleen@sif/default.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 611ae8a7..79824844 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -2,6 +2,14 @@
2let 2let
3 cfg = config.home-manager.users.${userName}; 3 cfg = config.home-manager.users.${userName};
4 xmonad = import ./xmonad pkgs.haskellPackages; 4 xmonad = import ./xmonad pkgs.haskellPackages;
5 emacsclientDesktopItem = pkgs.makeDesktopItem {
6 name = "emacsclient";
7 genericName = "Text Editor";
8 desktopName = "emacsclient";
9 icon = "emacs";
10 mimeType = "text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;";
11 exec = "${config.home-manager.users.${userName}.programs.emacs.package}/bin/emacsclient -a \"\" %F";
12 };
5in { 13in {
6 imports = with flake.nixosModules.userProfiles.${userName}; [ 14 imports = with flake.nixosModules.userProfiles.${userName}; [
7 mpv 15 mpv
@@ -170,7 +178,7 @@ in {
170 google-play-music-desktop-player qt5ct playerctl evince 178 google-play-music-desktop-player qt5ct playerctl evince
171 thunderbird zulip zoom-us steam steam-run wireshark skype 179 thunderbird zulip zoom-us steam steam-run wireshark skype
172 virt-manager rclone cached-nix-shell xournal discord xmonad 180 virt-manager rclone cached-nix-shell xournal discord xmonad
173 worktime fira-code-symbols 181 worktime fira-code-symbols emacsclientDesktopItem
174 ]; 182 ];
175 183
176 file = { 184 file = {
@@ -182,11 +190,14 @@ in {
182 190
183 sessionVariables = { 191 sessionVariables = {
184 GDK_SCALE = 96.0 / 282.0; 192 GDK_SCALE = 96.0 / 282.0;
185 XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS";
186 QT_AUTO_SCREEN_SCALE_FACTOR = 1; 193 QT_AUTO_SCREEN_SCALE_FACTOR = 1;
187 QT_QPA_PLATFORMTHEME = "qt5ct"; 194 QT_QPA_PLATFORMTHEME = "qt5ct";
188 }; 195 };
189 196
197 extraProfileCommands = ''
198 export XDG_DATA_DIRS="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}''${XDG_DATA_DIRS:+:''${XDG_DATA_DIRS}}"
199 '';
200
190 stateVersion = "20.03"; 201 stateVersion = "20.03";
191 }; 202 };
192 203