Home: Always enable xdg but set mime depending on system config
This commit is contained in:
@ -252,10 +252,12 @@
|
|||||||
# This only works when HM is installed as a system module,
|
# This only works when HM is installed as a system module,
|
||||||
# as nixosConfig won't be available otherwise.
|
# as nixosConfig won't be available otherwise.
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = !headless;
|
enable = true; # This only does xdg path management
|
||||||
mime.enable = !headless;
|
mime.enable = nixosConfig.modules.mime.enable;
|
||||||
|
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = !headless;
|
enable = nixosConfig.modules.mime.enable;
|
||||||
|
|
||||||
associations.added = nixosConfig.xdg.mime.addedAssociations;
|
associations.added = nixosConfig.xdg.mime.addedAssociations;
|
||||||
associations.removed = nixosConfig.xdg.mime.removedAssociations;
|
associations.removed = nixosConfig.xdg.mime.removedAssociations;
|
||||||
defaultApplications = nixosConfig.xdg.mime.defaultApplications;
|
defaultApplications = nixosConfig.xdg.mime.defaultApplications;
|
||||||
|
Reference in New Issue
Block a user