diff --git a/modules/home/settings/xdg/defaults/default.nix b/modules/home/settings/xdg/defaults/default.nix index b8ba593b..1646ea18 100644 --- a/modules/home/settings/xdg/defaults/default.nix +++ b/modules/home/settings/xdg/defaults/default.nix @@ -1,11 +1,18 @@ { ... }: { xdg.mimeApps.defaultApplications = { - "inode/directory" = [ "pcmanfm-qt.desktop" ]; - "text/plain" = [ "nvim.desktop" ]; - "image/png" = [ "imv.desktop" ]; - "image/jpeg" = [ "imv.desktop" ]; + # Media + "image/*" = [ "imv.desktop" ]; "image/gif" = [ "mpv.desktop" ]; "video/*" = [ "mpv.desktop" ]; + + # Apps + "inode/directory" = [ "pcmanfm-qt.desktop" ]; + "text/plain" = [ "nvim.desktop" ]; + + # Browser + "application/x-mswinurl" = [ "librewolf.desktop" ]; + "x-scheme-handler/http" = [ "librewolf.desktop" ]; + "x-scheme-handler/https" = [ "librewolf.desktop" ]; }; } diff --git a/modules/system/settings/default.nix b/modules/system/settings/default.nix index 5a196fae..12467a0c 100644 --- a/modules/system/settings/default.nix +++ b/modules/system/settings/default.nix @@ -3,6 +3,7 @@ imports = [ ./font ./locale + ./logind ./minimal ./nix ./security diff --git a/modules/system/settings/logind/default.nix b/modules/system/settings/logind/default.nix new file mode 100644 index 00000000..a5b4471f --- /dev/null +++ b/modules/system/settings/logind/default.nix @@ -0,0 +1,8 @@ +{ config, lib, ... }: +{ + services.logind = { + killUserProcesses = true; + powerKey = lib.mkIf config.system.desktop.enable "suspend"; + powerKeyLongPress = "reboot"; + }; +}