Compare commits
10 commits
e3ac007ace
...
b2f0e15896
| Author | SHA1 | Date | |
|---|---|---|---|
| b2f0e15896 | |||
| 6d5a6fe250 | |||
| 7a749dcce1 | |||
| ace16d4840 | |||
| dac4c7b716 | |||
| 523ab4baab | |||
| ee42c4d2f3 | |||
| eb5ceeae93 | |||
| b9a197228b | |||
| e43ba3d0f0 |
9 changed files with 13 additions and 14 deletions
|
|
@ -13,8 +13,8 @@ in
|
||||||
|
|
||||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||||
applications.media.image = {
|
applications.media.image = {
|
||||||
bitmap = [ "feh.desktop" ];
|
bitmap = "feh.desktop";
|
||||||
vector = [ "feh.desktop" ];
|
vector = "feh.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||||
applications.editor = [ "firefox.desktop" ];
|
applications.browser = "firefox.desktop";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||||
applications.editor = [ "himalaya.desktop" ];
|
applications.editor = "himalaya.desktop";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ in
|
||||||
|
|
||||||
my.home.xdg.mime-apps = {
|
my.home.xdg.mime-apps = {
|
||||||
applications.media = {
|
applications.media = {
|
||||||
audio = [ "mpv.desktop" ];
|
audio = "mpv.desktop";
|
||||||
video = [ "mpv.desktop" ];
|
video = "mpv.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.home.xdg.mime-apps = {
|
my.home.xdg.mime-apps = {
|
||||||
applications.terminal = [ "Alacritty.desktop" ];
|
applications.terminal = "Alacritty.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.home.xdg.mime-apps = {
|
my.home.xdg.mime-apps = {
|
||||||
applications.terminal = [ "termite.desktop" ];
|
applications.terminal = "termite.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,6 @@ in
|
||||||
config.xdg.configFile = lib.mkIf cfg.enable configFiles;
|
config.xdg.configFile = lib.mkIf cfg.enable configFiles;
|
||||||
|
|
||||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||||
applications.editor = [ "nvim.desktop" ];
|
applications.editor = "nvim.desktop";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,10 @@ let
|
||||||
cfg = config.my.home.xdg.mime-apps;
|
cfg = config.my.home.xdg.mime-apps;
|
||||||
app = cfg.applications;
|
app = cfg.applications;
|
||||||
|
|
||||||
strOrStrList = with lib.types; coercedTo str lib.singleton (listOf str);
|
|
||||||
mkMimeAppOption = kind: lib.mkOption {
|
mkMimeAppOption = kind: lib.mkOption {
|
||||||
description = "Application to associate as ${kind}";
|
description = "Application to associate as ${kind}";
|
||||||
default = null;
|
default = null;
|
||||||
type = lib.types.nullOr strOrStrList;
|
type = with lib.types; nullOr str;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ in
|
||||||
|
|
||||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||||
applications.media.document = {
|
applications.media.document = {
|
||||||
comic = [ "org.pwmt.zathura.desktop" ];
|
comic = "org.pwmt.zathura.desktop";
|
||||||
ebook = [ "org.pwmt.zathura.desktop" ];
|
ebook = "org.pwmt.zathura.desktop";
|
||||||
pdf = [ "org.pwmt.zathura.desktop" ];
|
pdf = "org.pwmt.zathura.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue