Skip to content

Commit

Permalink
clean glances module
Browse files Browse the repository at this point in the history
  • Loading branch information
yomaq committed Mar 28, 2024
1 parent 5e66164 commit eef4a79
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions modules/hosts/glances/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ in
yomaq.glances = {
enable = lib.mkEnableOption (lib.mdDoc "Glances Server");
package = lib.mkPackageOptionMD pkgs "glances" { };
# listenPort = lib.mkOption {
# type = lib.types.int;
# default = 8082;
# description = lib.mdDoc "Port for Homepage to bind to.";
# };
};
};
config = lib.mkIf cfg.enable {
Expand All @@ -30,8 +25,6 @@ in
wantedBy = [ "multi-user.target" ];

environment = {
# HOMEPAGE_CONFIG_DIR = "/var/lib/homepage-dashboard";
# PORT = "${toString cfg.listenPort}";
};
serviceConfig = {
Type = "simple";
Expand All @@ -53,18 +46,6 @@ in
'';
};


##### Trying to get docker reporting to work, not working yet
# environment.systemPackages = with pkgs; [(glances.overrideAttrs (oldAttrs: {
# buildInputs = oldAttrs.buildInputs ++ [ python311Packages.docker-py ];
# propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [python311Packages.docker-py ];
# }))];

# yomaq.glances.package = with pkgs; (glances.overrideAttrs (oldAttrs: {
# buildInputs = oldAttrs.buildInputs or [] ++ [ python311Packages.docker-py ];
# propagatedBuildInputs = oldAttrs.propagatedBuildInputs or [] ++ [ python311Packages.docker-py];
# }));

yomaq.homepage.services =
(lib.optional (config.yomaq.homepage-dashboard.enable) {"Flake" = [
{"flake.lock last update"={
Expand Down

0 comments on commit eef4a79

Please sign in to comment.