mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
lid switch handling
This commit is contained in:
parent
50467b86e1
commit
74901b9bf2
@ -47,6 +47,7 @@ in
|
|||||||
#../../modules/android.nix
|
#../../modules/android.nix
|
||||||
#../../modules/podman.nix
|
#../../modules/podman.nix
|
||||||
#../../modules/docker.nix
|
#../../modules/docker.nix
|
||||||
|
../../modules/lid-switch-handling.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "yodaTab";
|
networking.hostName = "yodaTab";
|
||||||
|
@ -47,6 +47,7 @@ in
|
|||||||
../../modules/android.nix
|
../../modules/android.nix
|
||||||
#../../modules/podman.nix
|
#../../modules/podman.nix
|
||||||
../../modules/docker.nix
|
../../modules/docker.nix
|
||||||
|
../../modules/lid-switch-handling.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "yodaTux";
|
networking.hostName = "yodaTux";
|
||||||
|
@ -49,6 +49,7 @@ in
|
|||||||
#../../modules/android.nix
|
#../../modules/android.nix
|
||||||
#../../modules/podman.nix
|
#../../modules/podman.nix
|
||||||
../../modules/docker.nix
|
../../modules/docker.nix
|
||||||
|
../../modules/lid-switch-handling.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "yodaYoga";
|
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, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.logind.lidSwitch = "ignore";
|
|
||||||
#services.logind.lidSwitchDocked = "ignore";
|
|
||||||
|
|
||||||
users.users.yoda = {
|
users.users.yoda = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
git
|
git
|
||||||
|
Loading…
Reference in New Issue
Block a user