mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
lid switch handling
This commit is contained in:
parent
50467b86e1
commit
74901b9bf2
@ -47,6 +47,7 @@ in
|
||||
#../../modules/android.nix
|
||||
#../../modules/podman.nix
|
||||
#../../modules/docker.nix
|
||||
../../modules/lid-switch-handling.nix
|
||||
];
|
||||
|
||||
networking.hostName = "yodaTab";
|
||||
|
@ -47,6 +47,7 @@ in
|
||||
../../modules/android.nix
|
||||
#../../modules/podman.nix
|
||||
../../modules/docker.nix
|
||||
../../modules/lid-switch-handling.nix
|
||||
];
|
||||
|
||||
networking.hostName = "yodaTux";
|
||||
|
@ -49,6 +49,7 @@ in
|
||||
#../../modules/android.nix
|
||||
#../../modules/podman.nix
|
||||
../../modules/docker.nix
|
||||
../../modules/lid-switch-handling.nix
|
||||
];
|
||||
|
||||
networking.hostName = "yodaYoga";
|
||||
|
10
modules/lid-switch-handling.nix
Normal file
10
modules/lid-switch-handling.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Don't suspend if laptop lid is closed while plugged in.
|
||||
# https://unix.stackexchange.com/a/307498
|
||||
#
|
||||
# services.logind.lidSwitch = "suspend";
|
||||
services.logind.lidSwitchExternalPower = "ignore";
|
||||
#services.logind.lidSwitchDocked = "ignore";
|
||||
}
|
@ -1,9 +1,6 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.logind.lidSwitch = "ignore";
|
||||
#services.logind.lidSwitchDocked = "ignore";
|
||||
|
||||
users.users.yoda = {
|
||||
packages = with pkgs; [
|
||||
git
|
||||
|
Loading…
Reference in New Issue
Block a user