From 093b9241ed4104473b7d7c3a1a33c51b5e751b78 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 12 Nov 2024 14:49:34 -0800 Subject: Disable all lid functionality --- hosts/common/optional/services/nolid.nix | 7 +++++++ hosts/jupiter/default.nix | 1 + hosts/neptune/default.nix | 1 + hosts/saturn/default.nix | 1 + hosts/uranus/default.nix | 1 + 5 files changed, 11 insertions(+) create mode 100644 hosts/common/optional/services/nolid.nix (limited to 'hosts') diff --git a/hosts/common/optional/services/nolid.nix b/hosts/common/optional/services/nolid.nix new file mode 100644 index 0000000..db868fe --- /dev/null +++ b/hosts/common/optional/services/nolid.nix @@ -0,0 +1,7 @@ +{ + services.logind = { + lidSwitch = "ignore"; + lidSwitchDocked = "ignore"; + lidSwitchExternalPower = "ignore"; + }; +} diff --git a/hosts/jupiter/default.nix b/hosts/jupiter/default.nix index 7c6126d..412342b 100644 --- a/hosts/jupiter/default.nix +++ b/hosts/jupiter/default.nix @@ -23,6 +23,7 @@ ../common/core ../common/optional/misc.nix ../common/optional/services/fwupd.nix + ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix ../common/optional/zfs.nix ../common/users/nipsy diff --git a/hosts/neptune/default.nix b/hosts/neptune/default.nix index b98418f..02453e7 100644 --- a/hosts/neptune/default.nix +++ b/hosts/neptune/default.nix @@ -23,6 +23,7 @@ ../common/core ../common/optional/misc.nix ../common/optional/services/fwupd.nix + ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix ../common/optional/zfs.nix ../common/users/nipsy diff --git a/hosts/saturn/default.nix b/hosts/saturn/default.nix index a7b531a..b05fc8a 100644 --- a/hosts/saturn/default.nix +++ b/hosts/saturn/default.nix @@ -23,6 +23,7 @@ ../common/core ../common/optional/misc.nix ../common/optional/services/fwupd.nix + ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix ../common/optional/zfs.nix ../common/users/nipsy diff --git a/hosts/uranus/default.nix b/hosts/uranus/default.nix index 3b6e540..0f0dd48 100644 --- a/hosts/uranus/default.nix +++ b/hosts/uranus/default.nix @@ -23,6 +23,7 @@ ../common/core ../common/optional/misc.nix ../common/optional/services/fwupd.nix + ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix ../common/optional/zfs.nix ../common/users/nipsy -- cgit v1.2.3