logind stuff

This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-02 18:46:46 +02:00
parent 8f57211bf5
commit 7e03c3f3f1
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294

View File

@ -24,7 +24,10 @@ top@{ moduleWithSystem, ... }: {
};
users.defaultUserShell = pkgs.zsh;
programs = { zsh.enable = true; nix-ld.enable = true; };
services = { dbus.enable = true; };
services = {
dbus.enable = true;
logind = { lidSwitch = "lock"; lidSwitchDocked = "lock"; killUserProcesses = true; powerKeyLongPress = "reboot"; };
};
networking = { stevenBlackHosts = { enable = true; blockFakenews = true; blockGambling = true; blockSocial = true; }; };
});
sound = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }: {