HASH fe6841b7d987
DATE 2026-01-31
SUBJECT format with alejandra/deadnix
FILES 7 CHANGED
HASH fe6841b7d987
DATE 2026-01-31
SUBJECT format with alejandra/deadnix
FILES 7 CHANGED
┌─ modules/home/nixos/media/video.nix ───────────────────────────────────────┐
│ diff --git a/modules/home/nixos/media/video.nix b/modules/home/nixos/media/video.n │
│ ix │
│ index 844819a..9a6b987 100644 │
│ --- a/modules/home/nixos/media/video.nix │
│ +++ b/modules/home/nixos/media/video.nix │
│ @@ -1,7 +1,6 @@ │
│ { │
│ lib, │
│ osConfig, │
│ - pkgs, │
│ ... │
│ }: let │
│ inherit (lib) elem mkIf; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...es/home/nixos/media/video.nix ───┐
│ diff --git a/modules/home/nixos/media/video. │
│ nix b/modules/home/nixos/media/video.nix │
│ index 844819a..9a6b987 100644 │
│ --- a/modules/home/nixos/media/video.nix │
│ +++ b/modules/home/nixos/media/video.nix │
│ @@ -1,7 +1,6 @@ │
│ { │
│ lib, │
│ osConfig, │
│ - pkgs, │
│ ... │
│ }: let │
│ inherit (lib) elem mkIf; │
└──────────────────────────────────────────────┘
┌─ modules/home/nixos/tools/discordify.nix ──────────────────────────────────┐
│ diff --git a/modules/home/nixos/tools/discordify.nix b/modules/home/nixos/tools/di │
│ scordify.nix │
│ index 5a970e7..b82b31a 100644 │
│ --- a/modules/home/nixos/tools/discordify.nix │
│ +++ b/modules/home/nixos/tools/discordify.nix │
│ @@ -1,10 +1,7 @@ │
│ { │
│ - lib, │
│ - config, │
│ pkgs, │
│ ... │
│ }: let │
│ - inherit (lib) mkIf; │
│ discordify = pkgs.writeShellApplication { │
│ name = "discordify"; │
│ runtimeInputs = [pkgs.ffmpeg pkgs.bc pkgs.gum]; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...me/nixos/tools/discordify.nix ───┐
│ diff --git a/modules/home/nixos/tools/discor │
│ dify.nix b/modules/home/nixos/tools/discordi │
│ fy.nix │
│ index 5a970e7..b82b31a 100644 │
│ --- a/modules/home/nixos/tools/discordify.ni │
│ x │
│ +++ b/modules/home/nixos/tools/discordify.ni │
│ x │
│ @@ -1,10 +1,7 @@ │
│ { │
│ - lib, │
│ - config, │
│ pkgs, │
│ ... │
│ }: let │
│ - inherit (lib) mkIf; │
│ discordify = pkgs.writeShellApplication { │
│ name = "discordify"; │
│ runtimeInputs = [pkgs.ffmpeg pkgs.bc pk │
│ gs.gum]; │
└──────────────────────────────────────────────┘
┌─ modules/nixos/server/services/auth/authelia.nix ──────────────────────────┐
│ diff --git a/modules/nixos/server/services/auth/authelia.nix b/modules/nixos/serve │
│ r/services/auth/authelia.nix │
│ index 73ee34f..1bf2373 100644 │
│ --- a/modules/nixos/server/services/auth/authelia.nix │
│ +++ b/modules/nixos/server/services/auth/authelia.nix │
│ @@ -1,7 +1,6 @@ │
│ { │
│ config, │
│ lib, │
│ - pkgs, │
│ ... │
│ }: let │
│ inherit (lib) mkIf elem; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...er/services/auth/authelia.nix ───┐
│ diff --git a/modules/nixos/server/services/a │
│ uth/authelia.nix b/modules/nixos/server/serv │
│ ices/auth/authelia.nix │
│ index 73ee34f..1bf2373 100644 │
│ --- a/modules/nixos/server/services/auth/aut │
│ helia.nix │
│ +++ b/modules/nixos/server/services/auth/aut │
│ helia.nix │
│ @@ -1,7 +1,6 @@ │
│ { │
│ config, │
│ lib, │
│ - pkgs, │
│ ... │
│ }: let │
│ inherit (lib) mkIf elem; │
└──────────────────────────────────────────────┘
┌─ modules/nixos/server/services/forgejo/options.nix ────────────────────────┐
│ diff --git a/modules/nixos/server/services/forgejo/options.nix b/modules/nixos/ser │
│ ver/services/forgejo/options.nix │
│ index ce2fcd6..e17cd82 100644 │
│ --- a/modules/nixos/server/services/forgejo/options.nix │
│ +++ b/modules/nixos/server/services/forgejo/options.nix │
│ @@ -1,9 +1,7 @@ │
│ { │
│ lib, │
│ - config, │
│ ... │
│ }: let │
│ - inherit (config.services) forgejo; │
│ inherit (lib) mkEnableOption mkOption; │
│ inherit (lib.types) str; │
│ mkColorOption = description: │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ .../services/forgejo/options.nix ───┐
│ diff --git a/modules/nixos/server/services/f │
│ orgejo/options.nix b/modules/nixos/server/se │
│ rvices/forgejo/options.nix │
│ index ce2fcd6..e17cd82 100644 │
│ --- a/modules/nixos/server/services/forgejo/ │
│ options.nix │
│ +++ b/modules/nixos/server/services/forgejo/ │
│ options.nix │
│ @@ -1,9 +1,7 @@ │
│ { │
│ lib, │
│ - config, │
│ ... │
│ }: let │
│ - inherit (config.services) forgejo; │
│ inherit (lib) mkEnableOption mkOption; │
│ inherit (lib.types) str; │
│ mkColorOption = description: │
└──────────────────────────────────────────────┘
┌─ modules/nixos/server/services/monitoring/prometheus.nix ──────────────────┐
│ diff --git a/modules/nixos/server/services/monitoring/prometheus.nix b/modules/nix │
│ os/server/services/monitoring/prometheus.nix │
│ index affe52e..7aad8a9 100644 │
│ --- a/modules/nixos/server/services/monitoring/prometheus.nix │
│ +++ b/modules/nixos/server/services/monitoring/prometheus.nix │
│ @@ -14,31 +14,37 @@ in { │
│ scrapeConfigs = [ │
│ { │
│ job_name = "ooksmedia"; │
│ - static_configs = [{ │
│ - targets = ["localhost:9100"]; │
│ - labels = { │
│ - host = "ooksmedia"; │
│ - }; │
│ - }]; │
│ + static_configs = [ │
│ + { │
│ + targets = ["localhost:9100"]; │
│ + labels = { │
│ + host = "ooksmedia"; │
│ + }; │
│ + } │
│ + ]; │
│ } │
│ { │
│ job_name = "ooknode"; │
│ - static_configs = [{ │
│ - targets = ["ooknode.taila3ca6.ts.net:9100"]; │
│ - labels = { │
│ - host = "ooknode"; │
│ - }; │
│ - }]; │
│ + static_configs = [ │
│ + { │
│ + targets = ["ooknode.taila3ca6.ts.net:9100"]; │
│ + labels = { │
│ + host = "ooknode"; │
│ + }; │
│ + } │
│ + ]; │
│ } │
│ { │
│ job_name = "caddy"; │
│ - static_configs = [{ │
│ - targets = ["ooknode.taila3ca6.ts.net:2019"]; │
│ - labels = { │
│ - host = "ooknode"; │
│ - service = "caddy"; │
│ - }; │
│ - }]; │
│ + static_configs = [ │
│ + { │
│ + targets = ["ooknode.taila3ca6.ts.net:2019"]; │
│ + labels = { │
│ + host = "ooknode"; │
│ + service = "caddy"; │
│ + }; │
│ + } │
│ + ]; │
│ } │
│ ]; │
│ }; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...ces/monitoring/prometheus.nix ───┐
│ diff --git a/modules/nixos/server/services/m │
│ onitoring/prometheus.nix b/modules/nixos/ser │
│ ver/services/monitoring/prometheus.nix │
│ index affe52e..7aad8a9 100644 │
│ --- a/modules/nixos/server/services/monitori │
│ ng/prometheus.nix │
│ +++ b/modules/nixos/server/services/monitori │
│ ng/prometheus.nix │
│ @@ -14,31 +14,37 @@ in { │
│ scrapeConfigs = [ │
│ { │
│ job_name = "ooksmedia"; │
│ - static_configs = [{ │
│ - targets = ["localhost:9100"]; │
│ - labels = { │
│ - host = "ooksmedia"; │
│ - }; │
│ - }]; │
│ + static_configs = [ │
│ + { │
│ + targets = ["localhost:9100"]; │
│ + labels = { │
│ + host = "ooksmedia"; │
│ + }; │
│ + } │
│ + ]; │
│ } │
│ { │
│ job_name = "ooknode"; │
│ - static_configs = [{ │
│ - targets = ["ooknode.taila3ca6.t │
│ s.net:9100"]; │
│ - labels = { │
│ - host = "ooknode"; │
│ - }; │
│ - }]; │
│ + static_configs = [ │
│ + { │
│ + targets = ["ooknode.taila3ca6 │
│ .ts.net:9100"]; │
│ + labels = { │
│ + host = "ooknode"; │
│ + }; │
│ + } │
│ + ]; │
│ } │
│ { │
│ job_name = "caddy"; │
│ - static_configs = [{ │
│ - targets = ["ooknode.taila3ca6.t │
│ s.net:2019"]; │
│ - labels = { │
│ - host = "ooknode"; │
│ - service = "caddy"; │
│ - }; │
│ - }]; │
│ + static_configs = [ │
│ + { │
│ + targets = ["ooknode.taila3ca6 │
│ .ts.net:2019"]; │
│ + labels = { │
│ + host = "ooknode"; │
│ + service = "caddy"; │
│ + }; │
│ + } │
│ + ]; │
│ } │
│ ]; │
│ }; │
└──────────────────────────────────────────────┘
┌─ modules/nixos/server/services/ookflix/lib.nix ────────────────────────────┐
│ diff --git a/modules/nixos/server/services/ookflix/lib.nix b/modules/nixos/server/ │
│ services/ookflix/lib.nix │
│ index 5869747..045dc75 100644 │
│ --- a/modules/nixos/server/services/ookflix/lib.nix │
│ +++ b/modules/nixos/server/services/ookflix/lib.nix │
│ @@ -86,12 +86,7 @@ │
│ else throw "Invalid VolumeOption rootPath: ${rootPath}. Must be one of 's │
│ tate' 'data' 'media' 'torrents' 'usenet' 'usenet/complete' 'root'"; │
│ }; │
│ │
│ - mkServiceOptions = name: { │
│ - port, │
│ - gid, │
│ - uid, │
│ - ... │
│ - } @ args: { │
│ + mkServiceOptions = name: {...} @ args: { │
│ enable = mkEnableOption "Enable ${name} container" // {default = ookflixEnabl │
│ ed;}; │
│ port = mkPortOption args.port "Port for ${name} container." 80; │
│ domain = mkSubdomainOption name "Domain for ${name} container." "${name}.mydo │
│ main.com"; │
│ @@ -99,11 +94,7 @@ │
│ user = mkUserOption name args.uid; │
│ group = mkGroupOption name args.gid; │
│ }; │
│ - mkBasicServiceOptions = name: { │
│ - gid, │
│ - uid, │
│ - ... │
│ - } @ args: { │
│ + mkBasicServiceOptions = name: {...} @ args: { │
│ enable = mkEnableOption "Enable ${name} container" // {default = ookflixEnabl │
│ ed;}; │
│ user = mkUserOption name args.uid; │
│ group = mkGroupOption name args.gid; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...rver/services/ookflix/lib.nix ───┐
│ diff --git a/modules/nixos/server/services/o │
│ okflix/lib.nix b/modules/nixos/server/servic │
│ es/ookflix/lib.nix │
│ index 5869747..045dc75 100644 │
│ --- a/modules/nixos/server/services/ookflix/ │
│ lib.nix │
│ +++ b/modules/nixos/server/services/ookflix/ │
│ lib.nix │
│ @@ -86,12 +86,7 @@ │
│ else throw "Invalid VolumeOption ro │
│ otPath: ${rootPath}. Must be one of 'state' │
│ 'data' 'media' 'torrents' 'usenet' 'usenet/c │
│ omplete' 'root'"; │
│ }; │
│ │
│ - mkServiceOptions = name: { │
│ - port, │
│ - gid, │
│ - uid, │
│ - ... │
│ - } @ args: { │
│ + mkServiceOptions = name: {...} @ args: { │
│ enable = mkEnableOption "Enable ${name} │
│ container" // {default = ookflixEnabled;}; │
│ port = mkPortOption args.port "Port for │
│ ${name} container." 80; │
│ domain = mkSubdomainOption name "Domain │
│ for ${name} container." "${name}.mydomain.c │
│ om"; │
│ @@ -99,11 +94,7 @@ │
│ user = mkUserOption name args.uid; │
│ group = mkGroupOption name args.gid; │
│ }; │
│ - mkBasicServiceOptions = name: { │
│ - gid, │
│ - uid, │
│ - ... │
│ - } @ args: { │
│ + mkBasicServiceOptions = name: {...} @ arg │
│ s: { │
│ enable = mkEnableOption "Enable ${name} │
│ container" // {default = ookflixEnabled;}; │
│ user = mkUserOption name args.uid; │
│ group = mkGroupOption name args.gid; │
└──────────────────────────────────────────────┘
┌─ modules/nixos/server/services/ookflix/streamers/plex.nix ─────────────────┐
│ diff --git a/modules/nixos/server/services/ookflix/streamers/plex.nix b/modules/ni │
│ xos/server/services/ookflix/streamers/plex.nix │
│ index 9c1d2d5..8d94c68 100644 │
│ --- a/modules/nixos/server/services/ookflix/streamers/plex.nix │
│ +++ b/modules/nixos/server/services/ookflix/streamers/plex.nix │
│ @@ -9,7 +9,7 @@ │
│ inherit (ookflixLib) mkServiceUser mkServiceStateDir; │
│ inherit (lib) mkIf optionalAttrs; │
│ inherit (ook.lib.container) mkContainerLabel mkContainerEnvironment mkContainer │
│ Port; │
│ - inherit (config.ooknet.server.ookflix) gpuAcceleration services volumes groups; │
│ + inherit (config.ooknet.server.ookflix) gpuAcceleration volumes groups; │
│ inherit (config.ooknet.server.ookflix.services) plex; │
│ in { │
│ config = mkIf plex.enable { │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...es/ookflix/streamers/plex.nix ───┐
│ diff --git a/modules/nixos/server/services/o │
│ okflix/streamers/plex.nix b/modules/nixos/se │
│ rver/services/ookflix/streamers/plex.nix │
│ index 9c1d2d5..8d94c68 100644 │
│ --- a/modules/nixos/server/services/ookflix/ │
│ streamers/plex.nix │
│ +++ b/modules/nixos/server/services/ookflix/ │
│ streamers/plex.nix │
│ @@ -9,7 +9,7 @@ │
│ inherit (ookflixLib) mkServiceUser mkServ │
│ iceStateDir; │
│ inherit (lib) mkIf optionalAttrs; │
│ inherit (ook.lib.container) mkContainerLa │
│ bel mkContainerEnvironment mkContainerPort; │
│ - inherit (config.ooknet.server.ookflix) gp │
│ uAcceleration services volumes groups; │
│ + inherit (config.ooknet.server.ookflix) gp │
│ uAcceleration volumes groups; │
│ inherit (config.ooknet.server.ookflix.ser │
│ vices) plex; │
│ in { │
│ config = mkIf plex.enable { │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET