diff --git a/modules/home/feh/default.nix b/modules/home/feh/default.nix index d72eed2..d8c0b36 100644 --- a/modules/home/feh/default.nix +++ b/modules/home/feh/default.nix @@ -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"; }; }; } diff --git a/modules/home/firefox/default.nix b/modules/home/firefox/default.nix index 2c04c8e..fe5c6b8 100644 --- a/modules/home/firefox/default.nix +++ b/modules/home/firefox/default.nix @@ -81,6 +81,6 @@ in }; config.my.home.xdg.mime-apps = lib.mkIf cfg.enable { - applications.editor = [ "firefox.desktop" ]; + applications.browser = "firefox.desktop"; }; } diff --git a/modules/home/mail/himalaya/default.nix b/modules/home/mail/himalaya/default.nix index 84eccf5..b645660 100644 --- a/modules/home/mail/himalaya/default.nix +++ b/modules/home/mail/himalaya/default.nix @@ -22,6 +22,6 @@ in }; config.my.home.xdg.mime-apps = lib.mkIf cfg.enable { - applications.editor = [ "himalaya.desktop" ]; + applications.editor = "himalaya.desktop"; }; } diff --git a/modules/home/mpv/default.nix b/modules/home/mpv/default.nix index 1ccd0ba..f40bf41 100644 --- a/modules/home/mpv/default.nix +++ b/modules/home/mpv/default.nix @@ -20,8 +20,8 @@ in my.home.xdg.mime-apps = { applications.media = { - audio = [ "mpv.desktop" ]; - video = [ "mpv.desktop" ]; + audio = "mpv.desktop"; + video = "mpv.desktop"; }; }; }; diff --git a/modules/home/terminal/alacritty/default.nix b/modules/home/terminal/alacritty/default.nix index 35a08c6..87f489b 100644 --- a/modules/home/terminal/alacritty/default.nix +++ b/modules/home/terminal/alacritty/default.nix @@ -50,7 +50,7 @@ in }; my.home.xdg.mime-apps = { - applications.terminal = [ "Alacritty.desktop" ]; + applications.terminal = "Alacritty.desktop"; }; }; } diff --git a/modules/home/terminal/termite/default.nix b/modules/home/terminal/termite/default.nix index b4ecdad..5e7517d 100644 --- a/modules/home/terminal/termite/default.nix +++ b/modules/home/terminal/termite/default.nix @@ -51,7 +51,7 @@ in }; my.home.xdg.mime-apps = { - applications.terminal = [ "termite.desktop" ]; + applications.terminal = "termite.desktop"; }; }; } diff --git a/modules/home/vim/default.nix b/modules/home/vim/default.nix index b12ba8d..834dd8d 100644 --- a/modules/home/vim/default.nix +++ b/modules/home/vim/default.nix @@ -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"; }; } diff --git a/modules/home/xdg/mime-apps.nix b/modules/home/xdg/mime-apps.nix index 8dd5298..f704183 100644 --- a/modules/home/xdg/mime-apps.nix +++ b/modules/home/xdg/mime-apps.nix @@ -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 { diff --git a/modules/home/zathura/default.nix b/modules/home/zathura/default.nix index 7a47e82..cd3c3c4 100644 --- a/modules/home/zathura/default.nix +++ b/modules/home/zathura/default.nix @@ -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"; }; }; }