diff options
-rw-r--r-- | accounts/gkleen@sif/default.nix | 15 |
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 @@ | |||
2 | let | 2 | let |
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 | }; | ||
5 | in { | 13 | in { |
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 | ||