Add mime app associations to shared config
This commit is contained in:
parent
5a09a2b645
commit
308cf4d7f0
4 changed files with 46 additions and 15 deletions
|
@ -13,5 +13,6 @@
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
|
./xdg.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
5
gtk.nix
5
gtk.nix
|
@ -12,5 +12,8 @@
|
||||||
dconf.settings."org/gnome/desktop/interface" = {
|
dconf.settings."org/gnome/desktop/interface" = {
|
||||||
enable-animations = false;
|
enable-animations = false;
|
||||||
};
|
};
|
||||||
qt.platformTheme = true;
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme = "gnome";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
21
metis.nix
21
metis.nix
|
@ -8,6 +8,7 @@ let
|
||||||
NOTMUCH_CONFIG = "\$HOME/.config/notmuch/config";
|
NOTMUCH_CONFIG = "\$HOME/.config/notmuch/config";
|
||||||
GDK_BACKEND= "wayland";
|
GDK_BACKEND= "wayland";
|
||||||
MOZ_ENABLE_WAYLAND= "1";
|
MOZ_ENABLE_WAYLAND= "1";
|
||||||
|
SSH_ASKPASS = "${pkgs.lxqt.lxqt-openssh-askpass}/bin/lxqt-openssh-askpass";
|
||||||
};
|
};
|
||||||
unstable = import <nixpkgs-unstable> {};
|
unstable = import <nixpkgs-unstable> {};
|
||||||
in
|
in
|
||||||
|
@ -24,6 +25,10 @@ in
|
||||||
systemd.user.sessionVariables = userEnv;
|
systemd.user.sessionVariables = userEnv;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
slurp
|
||||||
|
grim
|
||||||
|
jq
|
||||||
|
lxqt.lxqt-openssh-askpass
|
||||||
xdg_utils
|
xdg_utils
|
||||||
pwgen
|
pwgen
|
||||||
mkpasswd
|
mkpasswd
|
||||||
|
@ -44,7 +49,6 @@ in
|
||||||
inkscape
|
inkscape
|
||||||
inotify-tools
|
inotify-tools
|
||||||
jmtpfs
|
jmtpfs
|
||||||
keepassxc
|
|
||||||
ldns
|
ldns
|
||||||
libreoffice
|
libreoffice
|
||||||
mblaze
|
mblaze
|
||||||
|
@ -79,6 +83,8 @@ in
|
||||||
] ++ (with unstable; [
|
] ++ (with unstable; [
|
||||||
python38Packages.managesieve
|
python38Packages.managesieve
|
||||||
android-studio
|
android-studio
|
||||||
|
cachix
|
||||||
|
keepassxc
|
||||||
]);
|
]);
|
||||||
|
|
||||||
#wayland.windowManager.sway = {
|
#wayland.windowManager.sway = {
|
||||||
|
@ -99,19 +105,6 @@ in
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mimeApps = {
|
|
||||||
enable = false;
|
|
||||||
associations.added = {
|
|
||||||
"text/html" = "firefox.desktop";
|
|
||||||
"text/plain" = "vim.desktop";
|
|
||||||
"application/plain" = "zathura.desktop";
|
|
||||||
};
|
|
||||||
defaultApplications = {
|
|
||||||
"text/html" = "firefox.desktop";
|
|
||||||
"text/plain" = "vim.desktop";
|
|
||||||
"application/plain" = "zathura.desktop";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
userDirs = {
|
userDirs = {
|
||||||
download ="\$HOME/tmp";
|
download ="\$HOME/tmp";
|
||||||
music = "\$HOME/lib/music";
|
music = "\$HOME/lib/music";
|
||||||
|
|
34
xdg.nix
Normal file
34
xdg.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
apps = {
|
||||||
|
"x-scheme-handler/mailto" = "userapp-Thunderbird-PB7NI0.desktop";
|
||||||
|
"message/rfc822" = "userapp-Thunderbird-PB7NI0.desktop";
|
||||||
|
"x-scheme-handler/http" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/https" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/ftp" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/chrome" = "firefox.desktop";
|
||||||
|
"text/html" = "firefox.desktop";
|
||||||
|
"application/x-extension-htm" = "firefox.desktop";
|
||||||
|
"application/x-extension-html" = "firefox.desktop";
|
||||||
|
"application/x-extension-shtml" = "firefox.desktop";
|
||||||
|
"application/xhtml+xml" = "firefox.desktop";
|
||||||
|
"application/x-extension-xhtml" = "firefox.desktop";
|
||||||
|
"application/x-extension-xht" = "firefox.desktop";
|
||||||
|
"text/plain" = "vim.desktop";
|
||||||
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
xdg = {
|
||||||
|
enable = true;
|
||||||
|
mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
associations.added = apps;
|
||||||
|
defaultApplications = apps;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
firefox-bin
|
||||||
|
xdg_utils
|
||||||
|
zathura
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue