From f2ec49ad2d40abb2fff49d3c62df1cb32f9df19c Mon Sep 17 00:00:00 2001 From: Don Harper Date: Wed, 4 Oct 2023 23:01:22 -0500 Subject: [PATCH] pocket2 changes + CONSOLE BLANKING --- flake.nix | 5 ++++- workstation/systemd.nix | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6c00cf8..5881f66 100644 --- a/flake.nix +++ b/flake.nix @@ -46,7 +46,10 @@ networking.hostName = "pocket2"; } ./hosts/pocket2/hardware-configuration.nix - inputs.nixos-hardware.nixosModules.gpd.pocket-3 + inputs.nixos-hardware.nixosModules.common-cpu-intel + inputs.nixos-hardware.nixosModules.common-gpu-intel + inputs.nixos-hardware.nixosModules.common-pc-laptop + inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd ]; }; dragon = inputs.nixpkgs.lib.nixosSystem { diff --git a/workstation/systemd.nix b/workstation/systemd.nix index 53e727a..e0f7810 100644 --- a/workstation/systemd.nix +++ b/workstation/systemd.nix @@ -6,6 +6,20 @@ 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"; + }; + }; tailscale-autoconnect = { description = "Automatic connection to Tailscale";