1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/servnerr-3: apcupsd, new comma and go

This commit is contained in:
Matt Layher 2022-10-27 21:53:48 -04:00
parent cb8f335df8
commit 3b9ee063e2
2 changed files with 20 additions and 7 deletions

View file

@ -2,12 +2,14 @@
let
secrets = import ./secrets.nix;
unstable = import <nixos-unstable-small> { };
# Import comma with local nix-index preferred over the comma one.
comma = import (builtins.fetchTarball
"https://github.com/nix-community/comma/archive/refs/tags/1.1.0.tar.gz") {
inherit pkgs;
};
comma = (import (pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "comma";
rev = "v1.3.0";
sha256 = "sha256-rXAX14yB8v9BOG4ZsdGEedpZAnNqhQ4DtjQwzFX/TLY=";
})).default;
in {
boot = {
@ -45,7 +47,6 @@ in {
file
fwupd
gcc
go
git
gnumake
gptfdisk
@ -84,6 +85,9 @@ in {
wget
wireguard-tools
xterm
# Unstable packages.
unstable.go
];
};

View file

@ -72,7 +72,16 @@ in {
];
services = {
apcupsd.enable = true;
apcupsd = {
enable = true;
configText = ''
UPSCABLE usb
UPSTYPE usb
DEVICE
UPSCLASS standalone
UPSMODE disable
'';
};
# Deploy CoreRAD monitor mode on all interfaces.
corerad = {