From 520a930c60b04fcfbb85132f6cb3ddaefae840e0 Mon Sep 17 00:00:00 2001 From: Felix Suchert Date: Tue, 6 Jun 2023 13:26:13 +0200 Subject: [PATCH] Add vnstat --- entropy/nixos/flake.lock | 12 ++++++------ entropy/nixos/modules/networking.nix | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/entropy/nixos/flake.lock b/entropy/nixos/flake.lock index 166318f..a5beae6 100644 --- a/entropy/nixos/flake.lock +++ b/entropy/nixos/flake.lock @@ -39,11 +39,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1685004253, - "narHash": "sha256-AbVL1nN/TDicUQ5wXZ8xdLERxz/eJr7+o8lqkIOVuaE=", + "lastModified": 1685865905, + "narHash": "sha256-XJZ/o17eOd2sEsGif+/MQBnfa2DKmndWgJyc7CWajFc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3e01645c40b92d29f3ae76344a6d654986a91a91", + "rev": "e7603eba51f2c7820c0a182c6bbb351181caa8e7", "type": "github" }, "original": { @@ -62,11 +62,11 @@ }, "unstable": { "locked": { - "lastModified": 1684935479, - "narHash": "sha256-6QMMsXMr2nhmOPHdti2j3KRHt+bai2zw+LJfdCl97Mk=", + "lastModified": 1685931219, + "narHash": "sha256-8EWeOZ6LKQfgAjB/USffUSELPRjw88A+xTcXnOUvO5M=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f91ee3065de91a3531329a674a45ddcb3467a650", + "rev": "7409480d5c8584a1a83c422530419efe4afb0d19", "type": "github" }, "original": { diff --git a/entropy/nixos/modules/networking.nix b/entropy/nixos/modules/networking.nix index e2de4d5..31a323d 100644 --- a/entropy/nixos/modules/networking.nix +++ b/entropy/nixos/modules/networking.nix @@ -18,6 +18,9 @@ #networking.interfaces.enp0s20f0u2u1.useDHCP = true; #networking.interfaces.wlp0s20f3.useDHCP = true; + # statistics + services.vnstat.enable = true; + # enable OpenVPN for connecting to the TUD network services.openvpn.servers.tud = { config = '' config /home/felix/.config/vpn/TUD.ovpn '';