Skip to content

Commit

Permalink
chore: update sftpgo & victoriametrics
Browse files Browse the repository at this point in the history
fix: home-manager
  • Loading branch information
ryan4yin committed Oct 31, 2024
1 parent e4c2561 commit 30947c3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions hosts/idols-aquamarine/monitoring/module/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ with lib; let
"${cfg.package}/bin/victoria-metrics"
"-storageDataPath=/var/lib/${cfg.stateDir}"
"-httpListenAddr=${cfg.listenAddress}"
"-retentionPeriod=${cfg.retentionPeriod}"
]
++ lib.optionals (cfg.retentionPeriod != null) ["-retentionPeriod=${cfg.retentionPeriod}"]
++ cfg.extraOptions;
prometheusConfigYml = checkedConfig (
settingsFormat.generate "prometheusConfig.yaml" cfg.prometheusConfig
Expand All @@ -27,7 +27,7 @@ with lib; let
'';
in {
options.services.my-victoriametrics = {
enable = mkEnableOption "VictoriaMetrics, a time series database.";
enable = mkEnableOption "VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.";
package = mkPackageOption pkgs "victoriametrics" {};

listenAddress = mkOption {
Expand Down Expand Up @@ -127,11 +127,10 @@ in {
serviceConfig = {
ExecStart = lib.escapeShellArgs (
startCLIList
++ lib.optional (cfg.prometheusConfig != null) ["-promscrape.config=${prometheusConfigYml}"]
++ lib.optionals (cfg.prometheusConfig != null) ["-promscrape.config=${prometheusConfigYml}"]
);

DynamicUser = true;
User = "victoriametrics";
RestartSec = 1;
Restart = "on-failure";
RuntimeDirectory = "victoriametrics";
Expand Down
2 changes: 1 addition & 1 deletion hosts/idols-aquamarine/sftpgo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in {
# Create Directories
# https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html#Type
systemd.tmpfiles.rules = [
"d ${dataDir} 0755 ${user} ${user}"
"D ${dataDir} 0755 ${user} ${user}"
];

services.sftpgo = {
Expand Down
1 change: 1 addition & 0 deletions lib/colmenaSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ in
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "home-manager.backup";

home-manager.extraSpecialArgs = specialArgs;
home-manager.users."${myvars.username}".imports = home-modules;
Expand Down
1 change: 1 addition & 0 deletions lib/macosSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ in
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "home-manager.backup";

home-manager.extraSpecialArgs = specialArgs;
home-manager.users."${myvars.username}".imports = home-modules;
Expand Down
1 change: 1 addition & 0 deletions lib/nixosSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ in
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "home-manager.backup";

home-manager.extraSpecialArgs = specialArgs;
home-manager.users."${myvars.username}".imports = home-modules;
Expand Down

0 comments on commit 30947c3

Please sign in to comment.