From 43e8afe80486b805a3d93b1f46d17cb886455f81 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 21 Nov 2024 12:37:35 +0200 Subject: Trying some stuff with clipboard and battery notification --- hosts/laptop-nixos/configuration.nix | 23 +++++++++++++++++++++++ hosts/laptop-nixos/home.nix | 3 +++ 2 files changed, 26 insertions(+) (limited to 'hosts/laptop-nixos') diff --git a/hosts/laptop-nixos/configuration.nix b/hosts/laptop-nixos/configuration.nix index 4a80055..949f643 100644 --- a/hosts/laptop-nixos/configuration.nix +++ b/hosts/laptop-nixos/configuration.nix @@ -109,6 +109,29 @@ # Services services.openssh.enable = true; + # battery levels notifier + systemd.timers."battery-notifier" = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnBootSec = "1m"; + OnUnitActiveSec = "1m"; + Unit = "battery-notifier.service"; + }; + }; + + systemd.services."battery-notifier" = { + script = '' + set -eu + export DISPLAY=:0.0 + touch $HOME/Desktop/EEEEEEE + $HOME/scripts/battery_notifier.sh + ''; + serviceConfig = { + Type = "oneshot"; + User = "kyren"; + }; + }; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; diff --git a/hosts/laptop-nixos/home.nix b/hosts/laptop-nixos/home.nix index f89e297..7b31b5a 100644 --- a/hosts/laptop-nixos/home.nix +++ b/hosts/laptop-nixos/home.nix @@ -48,6 +48,9 @@ python3Full watchexec golangci-lint + kdePackages.kdialog + xclip + libnotify ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage -- cgit v1.3.1