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.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot"; boot.loader.efi.efiSysMountPoint = "/boot";
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [ "consoleblank=60" ];
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -6,20 +6,19 @@ let
in { in {
systemd = { systemd = {
services = { services = {
console-blank = { #console-blank = {
enable = true; # enable = true;
description ="Blank screen"; # description ="Blank screen";
serviceConfig = { # serviceConfig = {
Type = "oneshot"; # Type = "oneshot";
ExecStart = "${pkgs.util-linux}/bin/setterm -blank 1"; # ExecStart = "${pkgs.util-linux}/bin/setterm -blank 1";
TTYPath="/dev/console"; # TTYPath="/dev/console";
StandardOutput="tty"; # StandardOutput="tty";
}; # };
wantedBy = ["multi-user.target"]; # wantedBy = ["multi-user.target"];
environment = { # environment = {
TERM = "linux"; # TERM = "linux";
}; # };
};
tailscale-autoconnect = { tailscale-autoconnect = {
description = "Automatic connection to Tailscale"; description = "Automatic connection to Tailscale";