aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-11-12 14:49:34 -0800
committerMark Nipper <nipsy@bitgnome.net>2024-11-12 14:49:34 -0800
commit093b9241ed4104473b7d7c3a1a33c51b5e751b78 (patch)
treea06a39cf32d22199802ce4367576495a0c16d61d
parentce2d69efa52bb6bd3ab5b779451dee9d0f31e2a7 (diff)
downloadnix-093b9241ed4104473b7d7c3a1a33c51b5e751b78.tar
nix-093b9241ed4104473b7d7c3a1a33c51b5e751b78.tar.gz
nix-093b9241ed4104473b7d7c3a1a33c51b5e751b78.tar.bz2
nix-093b9241ed4104473b7d7c3a1a33c51b5e751b78.tar.lz
nix-093b9241ed4104473b7d7c3a1a33c51b5e751b78.tar.xz
nix-093b9241ed4104473b7d7c3a1a33c51b5e751b78.tar.zst
nix-093b9241ed4104473b7d7c3a1a33c51b5e751b78.zip
Disable all lid functionality
-rw-r--r--hosts/common/optional/services/nolid.nix7
-rw-r--r--hosts/jupiter/default.nix1
-rw-r--r--hosts/neptune/default.nix1
-rw-r--r--hosts/saturn/default.nix1
-rw-r--r--hosts/uranus/default.nix1
5 files changed, 11 insertions, 0 deletions
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