1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-23 02:39:40 +01:00
home-manager/tests/modules/misc/xdg/mime-apps-basics.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

33 lines
690 B
Nix

{
config = {
xdg.mimeApps = {
enable = true;
associations = {
added = {
"mimetype1" = [
"foo1.desktop"
"foo2.desktop"
"foo3.desktop"
];
"mimetype2" = "foo4.desktop";
};
removed = {
mimetype1 = "foo5.desktop";
};
};
defaultApplications = {
"mimetype1" = [
"default1.desktop"
"default2.desktop"
];
};
};
nmt.script = ''
assertFileExists home-files/.config/mimeapps.list
assertFileContent \
home-files/.config/mimeapps.list \
${./mime-apps-basics-expected.ini}
'';
};
}