From f4984880b4a5ac47f79407a04195ca0969648557 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Tue, 16 Sep 2025 17:01:40 -0300 Subject: [PATCH] chore(abaduh): use set to define users --- abaduh/adguard.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/abaduh/adguard.nix b/abaduh/adguard.nix index 5838060..5545cc4 100644 --- a/abaduh/adguard.nix +++ b/abaduh/adguard.nix @@ -12,12 +12,9 @@ in { port = 8753; settings = { http = {address = "127.0.0.1:${toString port}";}; - users = [ - { - name = "admin"; - password = "$2a$12$ciAyKG13D2ViEsy6fACxGu.1qEwwrAfPVgaVQdYgmkmvODHYuVWPa"; - } - ]; + users = mapAttrsToList (name: password: {inherit name password;}) { + "admin" = "$2a$12$ciAyKG13D2ViEsy6fACxGu.1qEwwrAfPVgaVQdYgmkmvODHYuVWPa"; + }; theme = "dark"; dns = { bind_hosts = [