workstation | even cleaner way to do console blanking
This commit is contained in:
parent
6123e02888
commit
f38125626a
2 changed files with 14 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue