From f38125626a8c5b5082e088998ef0a38888e46fba Mon Sep 17 00:00:00 2001 From: Don Harper Date: Thu, 5 Oct 2023 22:47:03 -0500 Subject: [PATCH] workstation | even cleaner way to do console blanking --- workstation/default.nix | 1 + workstation/systemd.nix | 27 +++++++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/workstation/default.nix b/workstation/default.nix index 01fd723..4c1f2dd 100644 --- a/workstation/default.nix +++ b/workstation/default.nix @@ -21,6 +21,7 @@ in boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.efiSysMountPoint = "/boot"; boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelParams = [ "consoleblank=60" ]; # Enable networking networking.networkmanager.enable = true; diff --git a/workstation/systemd.nix b/workstation/systemd.nix index e0f7810..674f39c 100644 --- a/workstation/systemd.nix +++ b/workstation/systemd.nix @@ -6,20 +6,19 @@ let in { systemd = { services = { - console-blank = { - enable = true; - description ="Blank screen"; - serviceConfig = { - Type = "oneshot"; - ExecStart = "${pkgs.util-linux}/bin/setterm -blank 1"; - TTYPath="/dev/console"; - StandardOutput="tty"; - }; - wantedBy = ["multi-user.target"]; - environment = { - TERM = "linux"; - }; - }; + #console-blank = { + # enable = true; + # description ="Blank screen"; + # serviceConfig = { + # Type = "oneshot"; + # ExecStart = "${pkgs.util-linux}/bin/setterm -blank 1"; + # TTYPath="/dev/console"; + # StandardOutput="tty"; + # }; + # wantedBy = ["multi-user.target"]; + # environment = { + # TERM = "linux"; + # }; tailscale-autoconnect = { description = "Automatic connection to Tailscale";