-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesktop.nix
More file actions
54 lines (48 loc) · 1.49 KB
/
Copy pathdesktop.nix
File metadata and controls
54 lines (48 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ config, pkgs, ... }:
let
makeDesktopFile = name: executable:
pkgs.writeTextFile {
name = "my-file";
text = ''
[Desktop Entry]
Name=${name}
Exec=${executable}
Type=Application
'';
};
in
import ./home.nix {
inherit config;
inherit pkgs;
# Add extra packages that we want on a desktop but not
# on servers. Graphical applications, games, etc.
extra-packages = [
pkgs.anki
pkgs.gnucash
pkgs.nethack
pkgs.bsdgames
((import ./packages/micro.nix) pkgs)
pkgs.noto-fonts-cjk-sans
pkgs.noto-fonts-color-emoji
pkgs.source-code-pro
pkgs.font-manager
pkgs.xorg.xeyes
pkgs.pterm
];
# emacs29-pgtk (Wayland) has problems with clipboard access
# see https://emacs.stackexchange.com/questions/74075/emacs-pgtk-for-wsl2-identification-and-clipboard-issues
emacs = pkgs.emacs;
enable_fontconfig = true;
extra-files = {
".local/share/applications/xeyes.desktop".source =
makeDesktopFile "Xeyes" "${pkgs.xorg.xeyes}/bin/xeyes";
".local/share/applications/anki.desktop".source =
makeDesktopFile "Anki" "${pkgs.anki}/bin/anki";
".local/share/applications/emacs.desktop".source =
makeDesktopFile "Emacs client" "${pkgs.emacs}/bin/emacsclient -c";
".local/share/applications/gnucash.desktop".source =
makeDesktopFile "Gnucash" "${pkgs.gnucash}/bin/gnucash";
".local/share/applications/pterm.desktop".source =
makeDesktopFile "PTerm" "${pkgs.pterm}/bin/pterm";
};
}