mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds vnstat for servers
This commit is contained in:
parent
ec6119f46c
commit
0514d04adf
1 changed files with 13 additions and 4 deletions
|
|
@ -1,8 +1,16 @@
|
||||||
{ lib, pkgs, config, username, home-manager, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
username,
|
||||||
|
home-manager,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.liv.server;
|
cfg = config.liv.server;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.liv.server = {
|
options.liv.server = {
|
||||||
enable = mkEnableOption "Enable server";
|
enable = mkEnableOption "Enable server";
|
||||||
};
|
};
|
||||||
|
|
@ -12,9 +20,10 @@ in {
|
||||||
pkgs.kitty.terminfo
|
pkgs.kitty.terminfo
|
||||||
powertop
|
powertop
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
thermald.enable = true;
|
thermald.enable = true;
|
||||||
|
vnstat.enable = true;
|
||||||
# cpupower-gui.enable = true;
|
# cpupower-gui.enable = true;
|
||||||
# power-profiles-daemon.enable = true;
|
# power-profiles-daemon.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue