mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
profiles: set XDG default applications for home-manager profiles
This commit is contained in:
parent
5e21289f88
commit
a32787f9fb
@ -121,6 +121,11 @@ in {
|
|||||||
quality-menu
|
quality-menu
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"audio/*" = [ "mpv.desktop" ];
|
||||||
|
"video/*" = [ "mpv.desktop" ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.documents.enable {
|
(lib.mkIf cfg.documents.enable {
|
||||||
@ -132,6 +137,13 @@ in {
|
|||||||
vale # Elevate your fanfics to an arguably higher caliber!
|
vale # Elevate your fanfics to an arguably higher caliber!
|
||||||
];
|
];
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/pdf" = [
|
||||||
|
"sioyek.desktop"
|
||||||
|
"com.github.johnfactotum.Foliate.desktop"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Some PDF viewer with a penchant for research.
|
# Some PDF viewer with a penchant for research.
|
||||||
programs.sioyek = {
|
programs.sioyek = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -28,6 +28,11 @@ in {
|
|||||||
parinfer-rust
|
parinfer-rust
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/json" = [ "nvim.desktop" ];
|
||||||
|
"text/plain" = [ "nvim.desktop" ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
# I only use Emacs for org-roam (seriously... I only learned Emacs for
|
# I only use Emacs for org-roam (seriously... I only learned Emacs for
|
||||||
@ -79,6 +84,12 @@ in {
|
|||||||
sqlite
|
sqlite
|
||||||
anystyle-cli
|
anystyle-cli
|
||||||
];
|
];
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/json" = [ "emacs.desktop" ];
|
||||||
|
"text/org" = [ "emacs.desktop" ];
|
||||||
|
"text/plain" = [ "emacs.desktop" ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
# The Visual Studio Code setup. Probably the hardest one to fully configure
|
# The Visual Studio Code setup. Probably the hardest one to fully configure
|
||||||
@ -116,6 +127,11 @@ in {
|
|||||||
# Yay! Thank you!
|
# Yay! Thank you!
|
||||||
mutableExtensionsDir = true;
|
mutableExtensionsDir = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/json" = [ "code.desktop" ];
|
||||||
|
"text/plain" = [ "code.desktop" ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -22,5 +22,9 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
services.syncthing.enable = true;
|
services.syncthing.enable = true;
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/vnd.anki" = [ "anki.desktop" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user