From 5e7e8f1f37103c3252744ffbed357069b898cd14 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 30 Dec 2024 19:12:22 +0400 Subject: [PATCH] set server module to be void.isServer instead and do logind --- modules/server/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/server/default.nix b/modules/server/default.nix index be14c88e..b632525b 100644 --- a/modules/server/default.nix +++ b/modules/server/default.nix @@ -1,6 +1,6 @@ { config, lib, ... }: with lib; -let cfg = config.modules.server; +let cfg = config.void.server; in { imports = [ ]; @@ -25,5 +25,9 @@ in { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPGAwG2Fqs3xNF/6/9GdznH/jUIqxW3aTYvmteuq9odZ sako@sakotop" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc" ]; + + # anything can be a server, even a laptop + # any say against this is a lie and propaganda + services.logind.lidSwitch = "ignore"; }; }