48 lines
2.0 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, user, inputs, ... }:
2024-10-24 20:36:57 -07:00
let cfg = config.modules.desktop;
in {
imports = [
2024-10-25 10:03:28 -07:00
./kde-connect.nix
2024-10-24 20:36:57 -07:00
./keyd.nix
./gnome.nix
2024-10-26 19:05:14 -07:00
./peripherals.nix
];
2024-10-24 20:36:57 -07:00
options.modules.desktop.enable = lib.mkEnableOption "desktop";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
bc # Arbitrary-precision arithmetic language.
gamemode # Optimizes system performance for gaming by adjusting system settings.
vesktop # Voice, video, and text communication platform for communities and friends.
inkscape # Vector graphics editor for creating illustrations, icons, logos, diagrams, and more.
libreoffice-fresh # Office suite compatible with Microsoft Office.
xournal # Note-taking and sketching application.
mpv # Media player for playing audio and video files.
p7zip # Command-line file archiver with high compression ratio.
gimp # GNU Image Manipulation Program for editing and composing raster images.
];
services.dbus.enable = true;
xdg.mime = {
enable = true;
defaultApplications = {
"inode/directory" = [ "pcmanfm.desktop" ];
"text/html" = [ "google-chrome.desktop" ];
"x-scheme-handler/http" = [ "google-chrome.desktop" ];
"x-scheme-handler/https" = [ "google-chrome.desktop" ];
"x-scheme-handler/ftp" = [ "google-chrome.desktop" ];
"x-scheme-handler/chrome" = [ "google-chrome.desktop" ];
"x-scheme-handler/about" = [ "google-chrome.desktop" ];
"x-scheme-handler/unknown" = [ "google-chrome.desktop" ];
"application/x-extension-htm" = [ "google-chrome.desktop" ];
"application/x-extension-html" = [ "google-chrome.desktop" ];
"application/x-extension-shtml" = [ "google-chrome.desktop" ];
"application/xhtml+xml" = [ "google-chrome.desktop" ];
"application/x-extension-xhtml" = [ "google-chrome.desktop" ];
"application/x-extension-xht" = [ "google-chrome.desktop" ];
"application/pdf" = [ "google-chrome.desktop" ]; };
};
};
2023-07-10 17:52:34 -07:00
}