From 08833c7c3161ea230bbfb099a2594664986d138a Mon Sep 17 00:00:00 2001 From: 4DBug <4DBug@github.com> Date: Mon, 9 Feb 2026 23:09:44 -0600 Subject: [PATCH] push --- main.nix | 1 + modules/glances.nix | 76 ++++++++++++++++++++++----------------------- 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/main.nix b/main.nix index bdf55ba..aa46df1 100644 --- a/main.nix +++ b/main.nix @@ -16,6 +16,7 @@ ./modules/searxng.nix ./modules/cloudflared.nix ./modules/invidious.nix + ./modules/glances.nix ({ pkgs, ... }: { environment.systemPackages = with pkgs; [ diff --git a/modules/glances.nix b/modules/glances.nix index 7483f33..75254c7 100644 --- a/modules/glances.nix +++ b/modules/glances.nix @@ -1,44 +1,44 @@ { config, pkgs, lib, ... }: { - environment.systemPackages = [ - pkgs.glances - ]; + environment.systemPackages = [ + pkgs.glances + ]; - users.users.glances = { - isSystemUser = true; - group = "glances"; - home = "/var/lib/glances"; - createHome = true; - }; - - users.groups.glances = {}; - - systemd.services.glances-web = { - description = "glances web interface"; - after = [ "network-online.target" ]; - wantedBy = [ "multi-user.target" ]; - - serviceConfig = { - User = "glances"; - Group = "glances"; - - ExecStart = '' - ${pkgs.glances}/bin/glances \ - -w \ - -p 61208 \ - -B 0.0.0.0 - ''; - - Restart = "always"; - RestartSec = 5; - - NoNewPrivileges = true; - PrivateTmp = true; - ProtectSystem = "strict"; - ProtectHome = true; - LockPersonality = true; - MemoryDenyWriteExecute = true; + users.users.glances = { + isSystemUser = true; + group = "glances"; + home = "/var/lib/glances"; + createHome = true; + }; + + users.groups.glances = {}; + + systemd.services.glances-web = { + description = "glances web interface"; + after = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; + + serviceConfig = { + User = "glances"; + Group = "glances"; + + ExecStart = '' + ${pkgs.glances}/bin/glances \ + -w \ + -p 61208 \ + -B 0.0.0.0 + ''; + + Restart = "always"; + RestartSec = 5; + + NoNewPrivileges = true; + PrivateTmp = true; + ProtectSystem = "strict"; + ProtectHome = true; + LockPersonality = true; + MemoryDenyWriteExecute = true; + }; }; - }; }