2024-06-11 17:49:50 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
config = lib.mkIf config.alyraffauf.defaultApps.enable {
|
|
|
|
home.packages = with config.alyraffauf.defaultApps; [
|
|
|
|
audioPlayer.package
|
|
|
|
editor.package
|
2024-06-21 23:05:31 -04:00
|
|
|
fileManager.package
|
2024-06-11 17:49:50 -04:00
|
|
|
imageViewer.package
|
2024-06-21 23:23:03 -04:00
|
|
|
pdfViewer.package
|
2024-06-19 22:04:19 -04:00
|
|
|
terminal.package
|
2024-06-11 17:49:50 -04:00
|
|
|
terminalEditor.package
|
|
|
|
videoPlayer.package
|
|
|
|
webBrowser.package
|
|
|
|
];
|
2024-06-19 22:04:19 -04:00
|
|
|
|
|
|
|
dconf = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
"org/cinnamon/desktop/applications/terminal".exec = "${config.alyraffauf.defaultApps.terminal.exe}";
|
|
|
|
"org/cinnamon/desktop/default-applications/terminal".exec = "${config.alyraffauf.defaultApps.terminal.exe}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-11 17:49:50 -04:00
|
|
|
xdg.mimeApps = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
2024-06-21 23:23:03 -04:00
|
|
|
"application/pdf" = config.alyraffauf.defaultApps.pdfViewer.desktop;
|
2024-06-11 17:49:50 -04:00
|
|
|
"application/x-shellscript" = config.alyraffauf.defaultApps.editor.desktop;
|
|
|
|
"application/xhtml+xml" = config.alyraffauf.defaultApps.webBrowser.desktop;
|
|
|
|
"audio/flac" = config.alyraffauf.defaultApps.audioPlayer.desktop;
|
|
|
|
"audio/mpeg" = config.alyraffauf.defaultApps.audioPlayer.desktop;
|
|
|
|
"audio/opus" = config.alyraffauf.defaultApps.audioPlayer.desktop;
|
|
|
|
"image/jpeg" = config.alyraffauf.defaultApps.imageViewer.desktop;
|
|
|
|
"image/png" = config.alyraffauf.defaultApps.imageViewer.desktop;
|
2024-06-21 23:05:31 -04:00
|
|
|
"inode/directory" = config.alyraffauf.defaultApps.fileManager.desktop;
|
2024-06-11 17:49:50 -04:00
|
|
|
"text/html" = config.alyraffauf.defaultApps.webBrowser.desktop;
|
|
|
|
"text/plain" = config.alyraffauf.defaultApps.editor.desktop;
|
|
|
|
"text/x-python" = config.alyraffauf.defaultApps.editor.desktop;
|
|
|
|
"text/xml" = config.alyraffauf.defaultApps.webBrowser.desktop;
|
|
|
|
"video/H264" = config.alyraffauf.defaultApps.videoPlayer.desktop;
|
|
|
|
"video/mp4" = config.alyraffauf.defaultApps.videoPlayer.desktop;
|
|
|
|
"video/mpeg" = config.alyraffauf.defaultApps.videoPlayer.desktop;
|
|
|
|
"video/ogg" = config.alyraffauf.defaultApps.videoPlayer.desktop;
|
|
|
|
"video/x-matroska" = config.alyraffauf.defaultApps.videoPlayer.desktop;
|
|
|
|
"x-scheme-handler/ftp" = config.alyraffauf.defaultApps.webBrowser.desktop;
|
|
|
|
"x-scheme-handler/http" = config.alyraffauf.defaultApps.webBrowser.desktop;
|
|
|
|
"x-scheme-handler/https" = config.alyraffauf.defaultApps.webBrowser.desktop;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
|
|
BROWSER = "${config.alyraffauf.defaultApps.webBrowser.exe}";
|
|
|
|
EDITOR = "${config.alyraffauf.defaultApps.terminalEditor.exe}";
|
|
|
|
TERMINAL = "${config.alyraffauf.defaultApps.terminal.exe}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|