parent
1028ecc6af
commit
a0e848276e
3 changed files with 75 additions and 20 deletions
modules/desktop/environment
|
@ -1,13 +1,20 @@
|
||||||
[Added Associations]
|
[Added Associations]
|
||||||
application/pdf=firefox.desktop;
|
application/pdf=firefox-devedition.desktop;wine-extension-pdf.desktop;okularApplication_pdf.desktop;com.github.xournalpp.xournalpp.desktop;draw.desktop;sioyek.desktop;
|
||||||
|
application/zip=org.kde.ark.desktop;org.prismlauncher.PrismLauncher.desktop;
|
||||||
image/jpeg=org.photoqt.PhotoQt.desktop;wine-extension-jpe.desktop;satty.desktop;okularApplication_kimgio.desktop;wine-extension-jfif.desktop;
|
image/jpeg=org.photoqt.PhotoQt.desktop;wine-extension-jpe.desktop;satty.desktop;okularApplication_kimgio.desktop;wine-extension-jfif.desktop;
|
||||||
image/png=swayimg.desktop;okularApplication_kimgio.desktop;firefox.desktop;satty.desktop;
|
image/png=swayimg.desktop;okularApplication_kimgio.desktop;firefox.desktop;satty.desktop;
|
||||||
|
text/plain=nvim.desktop;writer.desktop;okularApplication_txt.desktop;wine-extension-txt.desktop;
|
||||||
text/x-java=nvim.desktop;
|
text/x-java=nvim.desktop;
|
||||||
|
|
||||||
[Default Applications]
|
[Default Applications]
|
||||||
application/pdf=firefox.desktop;
|
application/pdf=firefox-devedition.desktop;
|
||||||
image/jpeg=org.photoqt.PhotoQt.desktop;
|
application/zip=org.kde.ark.desktop;
|
||||||
|
image/jpeg=swayimg.desktop;
|
||||||
image/png=swayimg.desktop;
|
image/png=swayimg.desktop;
|
||||||
|
text/plain=nvim.desktop;
|
||||||
text/x-java=nvim.desktop;
|
text/x-java=nvim.desktop;
|
||||||
x-scheme-handler/discord-712465656758665259=discord-712465656758665259.desktop
|
x-scheme-handler/discord-712465656758665259=discord-712465656758665259.desktop
|
||||||
x-scheme-handler/ror2mm=r2modman.desktop
|
x-scheme-handler/ror2mm=r2modman.desktop
|
||||||
|
|
||||||
|
[Removed Associations]
|
||||||
|
application/pdf=firefox-3.desktop;firefox-2.desktop;
|
||||||
|
|
|
@ -8,11 +8,8 @@
|
||||||
|
|
||||||
cfg = config.roles.desktop;
|
cfg = config.roles.desktop;
|
||||||
in {
|
in {
|
||||||
|
# https://github.com/NixOS/nixpkgs/blob/443424323ed4ff51b4f4314af39e0f57bb103586/nixos/modules/services/desktop-managers/plasma6.nix
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [
|
|
||||||
pkgs.kdePackages.kio-admin
|
|
||||||
];
|
|
||||||
|
|
||||||
# To make it work with firefox
|
# To make it work with firefox
|
||||||
# https://www.reddit.com/r/NixOS/comments/xtoubc/comment/koxxr3e/?utm_source=share&utm_medium=web2x&context=3
|
# https://www.reddit.com/r/NixOS/comments/xtoubc/comment/koxxr3e/?utm_source=share&utm_medium=web2x&context=3
|
||||||
systemd.user.services.plasma-dolphin = {
|
systemd.user.services.plasma-dolphin = {
|
||||||
|
@ -29,26 +26,69 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${cfg.user}.home.packages = attrValues {
|
services.udisks2.enable = true;
|
||||||
inherit
|
|
||||||
(pkgs)
|
# Enable GTK applications to load SVG icons
|
||||||
gnome-calculator
|
programs.gdk-pixbuf.modulePackages = [pkgs.librsvg];
|
||||||
;
|
|
||||||
|
# Fix application associations
|
||||||
|
home-manager.users.${cfg.user}.xdg.configFile."menus/applications.menu"
|
||||||
|
.source = "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
||||||
|
|
||||||
|
environment.systemPackages = attrValues {
|
||||||
|
# Complete apps
|
||||||
inherit
|
inherit
|
||||||
(pkgs.kdePackages)
|
(pkgs.kdePackages)
|
||||||
kde-cli-tools
|
|
||||||
ark
|
ark
|
||||||
kcharselect
|
|
||||||
kdenlive
|
|
||||||
okular
|
|
||||||
dolphin
|
dolphin
|
||||||
|
kcharselect
|
||||||
|
kmenuedit
|
||||||
|
kinfocenter
|
||||||
|
plasma-systemmonitor
|
||||||
|
ksystemstats
|
||||||
|
libksysguard
|
||||||
|
systemsettings
|
||||||
|
kcmutils
|
||||||
|
;
|
||||||
|
|
||||||
|
# globally loadable bits
|
||||||
|
inherit
|
||||||
|
(pkgs.kdePackages)
|
||||||
|
frameworkintegration # provides Qt plugin
|
||||||
|
kauth # provides helper service
|
||||||
|
kcoreaddons # provides extra mime type info
|
||||||
|
kded # provides helper service
|
||||||
|
kfilemetadata # provides Qt plugins
|
||||||
|
kguiaddons # provides geo URL handlers
|
||||||
|
kiconthemes # provides Qt plugins
|
||||||
|
kimageformats # provides Qt plugins
|
||||||
|
qtimageformats # provides optional image formats such as .webp and .avif
|
||||||
|
kio # provides helper service + a bunch of other stuff
|
||||||
|
kio-admin # managing files as admin
|
||||||
|
kio-extras # stuff for MTP, AFC, etc
|
||||||
|
kio-fuse # fuse interface for KIO
|
||||||
|
kpackage # provides kpackagetool tool
|
||||||
|
kservice # provides kbuildsycoca6 tool
|
||||||
|
kunifiedpush # provides a background service and a KCM
|
||||||
|
plasma-activities # provides plasma-activities-cli tool
|
||||||
|
solid # provides solid-hardware6 tool
|
||||||
|
phonon-vlc # provides Phonon plugin
|
||||||
|
;
|
||||||
|
|
||||||
|
inherit
|
||||||
|
(pkgs)
|
||||||
|
xdg-user-dirs
|
||||||
|
;
|
||||||
|
|
||||||
|
inherit
|
||||||
|
(pkgs.kdePackages)
|
||||||
|
baloo-widgets
|
||||||
dolphin-plugins
|
dolphin-plugins
|
||||||
kdegraphics-thumbnailers
|
|
||||||
ffmpegthumbs
|
ffmpegthumbs
|
||||||
kio
|
kde-cli-tools
|
||||||
kio-admin # needs to be both here and in system pkgs
|
kdegraphics-thumbnailers
|
||||||
kio-extras
|
|
||||||
kmime
|
kmime
|
||||||
|
qtsvg
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -160,6 +160,13 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = attrValues {
|
home.packages = attrValues {
|
||||||
|
# KDE packages
|
||||||
|
inherit
|
||||||
|
(pkgs.kdePackages)
|
||||||
|
kdenlive
|
||||||
|
okular
|
||||||
|
;
|
||||||
|
|
||||||
# School
|
# School
|
||||||
inherit (pkgs.hunspellDicts) en_CA;
|
inherit (pkgs.hunspellDicts) en_CA;
|
||||||
inherit
|
inherit
|
||||||
|
@ -173,6 +180,7 @@ in {
|
||||||
# Apps
|
# Apps
|
||||||
inherit
|
inherit
|
||||||
(pkgs)
|
(pkgs)
|
||||||
|
gnome-calculator
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
protonmail-desktop # run with `XDG_SESSION_TYPE=x11 proton-mail` if it crashes https://github.com/NixOS/nixpkgs/issues/365156
|
protonmail-desktop # run with `XDG_SESSION_TYPE=x11 proton-mail` if it crashes https://github.com/NixOS/nixpkgs/issues/365156
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue