Change what power keys do, set new xdg default apps
This commit is contained in:
parent
f0bd401ef4
commit
822fa6eae2
3 changed files with 20 additions and 4 deletions
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./font
|
||||
./locale
|
||||
./logind
|
||||
./minimal
|
||||
./nix
|
||||
./security
|
||||
|
|
8
modules/system/settings/logind/default.nix
Normal file
8
modules/system/settings/logind/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
services.logind = {
|
||||
killUserProcesses = true;
|
||||
powerKey = lib.mkIf config.system.desktop.enable "suspend";
|
||||
powerKeyLongPress = "reboot";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue