Compare commits

..

10 commits

9 changed files with 13 additions and 14 deletions

View file

@ -13,8 +13,8 @@ in
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
applications.media.image = {
bitmap = [ "feh.desktop" ];
vector = [ "feh.desktop" ];
bitmap = "feh.desktop";
vector = "feh.desktop";
};
};
}

View file

@ -81,6 +81,6 @@ in
};
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
applications.editor = [ "firefox.desktop" ];
applications.browser = "firefox.desktop";
};
}

View file

@ -22,6 +22,6 @@ in
};
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
applications.editor = [ "himalaya.desktop" ];
applications.editor = "himalaya.desktop";
};
}

View file

@ -20,8 +20,8 @@ in
my.home.xdg.mime-apps = {
applications.media = {
audio = [ "mpv.desktop" ];
video = [ "mpv.desktop" ];
audio = "mpv.desktop";
video = "mpv.desktop";
};
};
};

View file

@ -50,7 +50,7 @@ in
};
my.home.xdg.mime-apps = {
applications.terminal = [ "Alacritty.desktop" ];
applications.terminal = "Alacritty.desktop";
};
};
}

View file

@ -51,7 +51,7 @@ in
};
my.home.xdg.mime-apps = {
applications.terminal = [ "termite.desktop" ];
applications.terminal = "termite.desktop";
};
};
}

View file

@ -106,6 +106,6 @@ in
config.xdg.configFile = lib.mkIf cfg.enable configFiles;
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
applications.editor = [ "nvim.desktop" ];
applications.editor = "nvim.desktop";
};
}

View file

@ -3,11 +3,10 @@ let
cfg = config.my.home.xdg.mime-apps;
app = cfg.applications;
strOrStrList = with lib.types; coercedTo str lib.singleton (listOf str);
mkMimeAppOption = kind: lib.mkOption {
description = "Application to associate as ${kind}";
default = null;
type = lib.types.nullOr strOrStrList;
type = with lib.types; nullOr str;
};
in
{

View file

@ -20,9 +20,9 @@ in
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
applications.media.document = {
comic = [ "org.pwmt.zathura.desktop" ];
ebook = [ "org.pwmt.zathura.desktop" ];
pdf = [ "org.pwmt.zathura.desktop" ];
comic = "org.pwmt.zathura.desktop";
ebook = "org.pwmt.zathura.desktop";
pdf = "org.pwmt.zathura.desktop";
};
};
}