blob: ebfe957cca1b7a9cf65e941c90939cf2fe7db421 (
plain)
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
|
{
username,
...
}: let
mimeDefaults = {
"application/pdf" = [ "org.kde.okular.desktop" ];
"image/avif" = [ "org.gnome.Loupe.desktop" ];
"image/bmp" = [ "org.gnome.Loupe.desktop" ];
"image/gif" = [ "org.gnome.Loupe.desktop" ];
"image/heic" = [ "org.gnome.Loupe.desktop" ];
"image/jpeg" = [ "org.gnome.Loupe.desktop" ];
"image/png" = [ "org.gnome.Loupe.desktop" ];
"image/svg+xml" = [ "org.gnome.Loupe.desktop" ];
"image/tiff" = [ "org.gnome.Loupe.desktop" ];
"image/webp" = [ "org.gnome.Loupe.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"video/mpeg" = [ "mpv.desktop" ];
"video/ogg" = [ "mpv.desktop" ];
"video/quicktime" = [ "mpv.desktop" ];
"video/webm" = [ "mpv.desktop" ];
"video/x-matroska" = [ "mpv.desktop" ];
"video/x-msvideo" = [ "mpv.desktop" ];
"application/msword" = [ "libreoffice-writer.desktop" ];
"application/rtf" = [ "libreoffice-writer.desktop" ];
"application/vnd.oasis.opendocument.text" = [ "libreoffice-writer.desktop" ];
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = [ "libreoffice-writer.desktop" ];
"application/vnd.ms-excel" = [ "libreoffice-calc.desktop" ];
"application/vnd.oasis.opendocument.spreadsheet" = [ "libreoffice-calc.desktop" ];
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = [ "libreoffice-calc.desktop" ];
"text/csv" = [ "libreoffice-calc.desktop" ];
"application/vnd.ms-powerpoint" = [ "libreoffice-impress.desktop" ];
"application/vnd.oasis.opendocument.presentation" = [ "libreoffice-impress.desktop" ];
"application/vnd.openxmlformats-officedocument.presentationml.presentation" = [ "libreoffice-impress.desktop" ];
};
in {
home = {
inherit username;
homeDirectory = "/home/${username}";
stateVersion = "25.11";
};
programs.home-manager.enable = true;
xdg.mimeApps = {
enable = true;
defaultApplications = mimeDefaults;
associations.added = mimeDefaults;
};
}
|