diff --git a/hosts/yodaNas/host-specific.nix b/hosts/yodaNas/host-specific.nix index acf9d17..dae66a8 100644 --- a/hosts/yodaNas/host-specific.nix +++ b/hosts/yodaNas/host-specific.nix @@ -22,6 +22,26 @@ let ]; } ) + # de-p1st-monitor is not (yet) packaged, thus we build it from PyPI + ( + buildPythonPackage rec { + pname = "de.p1st.monitor"; + version = "0.10.5"; + # https://nixos.wiki/wiki/Packaging/Python#Fix_Missing_setup.py + format = "pyproject"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-WF/+oUQjSaQY+p+1uo2i35CciGCKrB4hn9a3m8oEXpI="; + }; + propagatedBuildInputs = [ + # Dependencies + pkgs.python3Packages.psutil + # Build dependencies + build + twine + ]; + } + ) ]; in { @@ -31,10 +51,13 @@ in "/mnt/backup".options = [ "compress=zstd" "noatime" "commit=120" ]; }; - # Install netcup-dns. + # Install de.p1st.monitor and netcup-dns Python packages. environment.systemPackages = [ (pkgs.python3.withPackages my-python-packages) + # Dependency of de.p1st.monitor. + pkgs.smartmontools ]; + # Configure netcup-dns. # Create file `/etc/netcup-dns/netcup-dns-95191.json`. deployment.keys."netcup-dns-95191.json" = {