diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/laptop-nixos/configuration.nix | 23 | ||||
| -rw-r--r-- | hosts/laptop-nixos/home.nix | 3 |
2 files changed, 26 insertions, 0 deletions
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 |
