workstation | even cleaner way to do console blanking

This commit is contained in:
Don Harper 2023-10-05 22:47:03 -05:00
parent 6123e02888
commit f38125626a
2 changed files with 14 additions and 14 deletions

View file

@ -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;

View file

@ -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";