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 {
|
||||
applications.media.image = {
|
||||
bitmap = [ "feh.desktop" ];
|
||||
vector = [ "feh.desktop" ];
|
||||
bitmap = "feh.desktop";
|
||||
vector = "feh.desktop";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,6 +81,6 @@ in
|
|||
};
|
||||
|
||||
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 {
|
||||
applications.editor = [ "himalaya.desktop" ];
|
||||
applications.editor = "himalaya.desktop";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ in
|
|||
|
||||
my.home.xdg.mime-apps = {
|
||||
applications.media = {
|
||||
audio = [ "mpv.desktop" ];
|
||||
video = [ "mpv.desktop" ];
|
||||
audio = "mpv.desktop";
|
||||
video = "mpv.desktop";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ in
|
|||
};
|
||||
|
||||
my.home.xdg.mime-apps = {
|
||||
applications.terminal = [ "Alacritty.desktop" ];
|
||||
applications.terminal = "Alacritty.desktop";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ in
|
|||
};
|
||||
|
||||
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.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;
|
||||
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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue