feat(files+applications): xdg, applications
applications: refactored some to home-manager files: configured home-manager xdg.config to use certain applications xdg portal: override for portal to use gtk instead of gnome for file picking
This commit is contained in:
1 parent
b112b8a5b6
commit
5a55a57786
5 files changed
+42
-6
No files matched your search
+26
-2
@@ -55,12 +55,15 @@
|
||||
(with pkgs; [
|
||||
# --- General utils ---
|
||||
libreoffice # Microsoft replace
|
||||
hunspell
|
||||
hunspell # auto spell for libre
|
||||
hunspellDicts.en_US
|
||||
matugen
|
||||
frogmouth
|
||||
])
|
||||
++ (with pkgs.unstablePkgs; [
|
||||
# --- General Utils ---
|
||||
cine
|
||||
gthumb
|
||||
# --- Creative utils ---
|
||||
obs-studio
|
||||
shotcut
|
||||
@@ -78,13 +81,34 @@
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"inode/directory" = [ "kitty-open.desktop" ];
|
||||
# Use "nemo.desktop" for GUI, or "org.wezfurlong.wezterm.desktop" for terminal
|
||||
"inode/directory" = [ "org.wezfurlong.wezterm.desktop" ];
|
||||
|
||||
# Images: gThumb
|
||||
"image/jpeg" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/png" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/gif" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/webp" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/tiff" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/bmp" = [ "org.gnome.gThumb.desktop" ];
|
||||
|
||||
# Documents: Okular
|
||||
"application/pdf" = [ "org.kde.okular.desktop" ];
|
||||
"application/epub+zip" = [ "org.kde.okular.desktop" ];
|
||||
|
||||
# Videos: Cine
|
||||
"video/mp4" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/x-matroska" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/webm" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/quicktime" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/x-msvideo" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/cinnamon/desktop/applications/terminal" = {
|
||||
exec = "wezterm";
|
||||
exec-arg = "start --cwd";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
html.enable = true;
|
||||
pyright.enable = true; # Python
|
||||
#lua_ls.enable = true; #TODO: requires more setup
|
||||
lua_ls.enable = true; #TODO: requires more setup
|
||||
jsonls.enable = true;
|
||||
|
||||
fish_lsp.enable = true; # Fish shell
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
"org.kde.krita"
|
||||
"com.mojang.Minecraft"
|
||||
"org.prismlauncher.PrismLauncher"
|
||||
"org.gnome.Showtime" #Duplicate -testing
|
||||
"io.github.diegopvlk.Cine" #Duplicate -testing
|
||||
"org.gnome.gThumb"
|
||||
"org.gnome.Calculator"
|
||||
"net.lutris.Lutris"
|
||||
];
|
||||
|
||||
@@ -12,6 +12,15 @@
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
programs.niri.enable = true;
|
||||
|
||||
xdg.portal = { # Prevents niri from opening files with nautilus
|
||||
enable = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
config.niri = {
|
||||
default = [ "gnome" "gtk" ];
|
||||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
||||
};
|
||||
};
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
programs.seahorse.enable = true;
|
||||
|
||||
|
||||
@@ -48,9 +48,12 @@ in
|
||||
xdg.mime.enable = true;
|
||||
services.tumbler.enable = true;
|
||||
services.gvfs.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# -- File manager --
|
||||
nemo-with-extensions # Stand alone GUI
|
||||
file-roller
|
||||
imagemagick
|
||||
poppler
|
||||
ffmpeg
|
||||
@@ -61,6 +64,9 @@ in
|
||||
lm_sensors
|
||||
ripgrep
|
||||
unzip
|
||||
kdePackages.okular # PDF Viewer
|
||||
kdePackages.qtsvg
|
||||
qt6.qtwayland
|
||||
];
|
||||
fonts.packages = [ ] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||
|
||||
|
||||
Reference in new issue
Block a user