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
|
@ -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