summaryrefslogtreecommitdiff
path: root/modules/nixos/mixins
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-02-13 18:03:35 -0500
committerSeth Flynn <[email protected]>2025-02-13 22:09:11 -0500
commitd61acd56adca52a78aee07adc030dc48c1c5a879 (patch)
tree090520803d02762b42995e5f5c5a4ea85468ee31 /modules/nixos/mixins
parent8531a2bc3189e31ce1623123f92cdcfce20e49b6 (diff)
nixos/promtail: drop
Diffstat (limited to 'modules/nixos/mixins')
-rw-r--r--modules/nixos/mixins/default.nix1
-rw-r--r--modules/nixos/mixins/promtail.nix48
2 files changed, 0 insertions, 49 deletions
diff --git a/modules/nixos/mixins/default.nix b/modules/nixos/mixins/default.nix
index 8a3653b..bb69bf8 100644
--- a/modules/nixos/mixins/default.nix
+++ b/modules/nixos/mixins/default.nix
@@ -13,7 +13,6 @@
./nvidia.nix
./pipewire.nix
./plasma.nix
- ./promtail.nix
./resolved.nix
./tailscale.nix
./zram.nix
diff --git a/modules/nixos/mixins/promtail.nix b/modules/nixos/mixins/promtail.nix
deleted file mode 100644
index 022c271..0000000
--- a/modules/nixos/mixins/promtail.nix
+++ /dev/null
@@ -1,48 +0,0 @@
-{ config, lib, ... }:
-let
- cfg = config.mixins.promtail;
- inherit (lib) types;
-in
-{
- options.mixins.promtail = {
- enable = lib.mkEnableOption "Promtail mixin";
-
- clients = lib.mkOption {
- type = types.listOf types.attrs;
- default = [ { } ];
- defaultText = lib.literalExpression "[ { } ]";
- description = "Clients for promtail";
- };
- };
-
- config = lib.mkIf cfg.enable {
- services.promtail = {
- enable = true;
- configuration = {
- inherit (cfg) clients;
- server.disable = true;
-
- scrape_configs = [
- {
- job_name = "journal";
-
- journal = {
- max_age = "12h";
- labels = {
- job = "systemd-journal";
- host = "${config.networking.hostName}";
- };
- };
-
- relabel_configs = [
- {
- source_labels = [ "__journal__systemd_unit" ];
- target_label = "unit";
- }
- ];
- }
- ];
- };
- };
- };
-}