experiment: incorporate pi-hole PR

reference: https://astrid.tech/2022/11/03/0/overlay-nixpkgs-pr/
This commit is contained in:
Payas Relekar 2023-09-18 12:19:47 +05:30
parent e8ec85000d
commit 34d77a5893
2 changed files with 30 additions and 1 deletions

View file

@ -153,6 +153,22 @@
"type": "github"
}
},
"nixpkgs-pihole": {
"locked": {
"lastModified": 1694715338,
"narHash": "sha256-aGc2gWI2jCHVJ4UnNboLPsDlooI3SVybpAiReIFCzto=",
"owner": "williamvds",
"repo": "nixpkgs",
"rev": "8edae633ed17bb48dc834fbccc992844463c4999",
"type": "github"
},
"original": {
"owner": "williamvds",
"ref": "add_pihole",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1694767346,
@ -175,7 +191,8 @@
"deploy-rs": "deploy-rs",
"home-manager": "home-manager_2",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_2",
"nixpkgs-pihole": "nixpkgs-pihole"
}
},
"utils": {

View file

@ -15,6 +15,8 @@
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
deploy-rs.url = "github:serokell/deploy-rs";
nixpkgs-pihole.url = "github:williamvds/nixpkgs/add_pihole";
};
outputs =
@ -24,6 +26,7 @@
, agenix
, nixos-hardware
, deploy-rs
, nixpkgs-pihole
, ...
}:
let
@ -35,6 +38,11 @@
];
in
{
overlay = final: prev: {
inherit (nixpkgs-pihole.legacyPackages.${prev.system})
pihole pihole-ftl pihole-adminlte;
};
nixosConfigurations = {
# The Workhorse: WSL2 edition
@ -73,6 +81,10 @@
system = "aarch64-linux";
modules = common-modules ++ [
{ nixpkgs.overlays = [ self.overlay ]; }
"${nixpkgs-pihole}/nixos/modules/services/networking/pihole-ftl.nix"
"${nixpkgs-pihole}/nixos/modules/services/web-apps/pihole-adminlte.nix"
# Modules and module config
./modules/mail.nix
./modules/monitoring/monitoring.nix