caddy soluzione 2. overlay senza nixpkgs custom

This commit is contained in:
pazpi 2024-09-06 08:02:07 +02:00
parent 1903e0a6e1
commit 6602567bf9
6 changed files with 80 additions and 59 deletions

View file

@ -1,26 +1,24 @@
{ nixpkgs
, nixos-hardware
, agenix
, home-manager
, lix-module
, nixpkgs-caddy
, ...
{
nixpkgs,
nixos-hardware,
agenix,
home-manager,
lix-module,
...
}:
let
agenixOverlay = final: prev: { agenix = agenix.packages.${prev.system}.default; };
customOverlays = import ../overlay;
pkgs =
system:
import nixpkgs {
inherit system;
overlays = [ agenixOverlay ];
config.allowUnfree = true;
};
pkgs-caddy =
system:
import nixpkgs-caddy {
inherit system;
overlays = [
agenixOverlay
customOverlays
];
config.allowUnfree = true;
};
@ -48,9 +46,7 @@ in
home-manager.nixosModules.home-manager
agenix.nixosModules.default
];
specialArgs = {
# inherit nixvim nix-index-database;
};
# specialArgs = { };
};
arr = nixpkgs.lib.nixosSystem {
@ -61,9 +57,7 @@ in
./arr
agenix.nixosModules.default
];
specialArgs = {
# inherit nixvim nix-index-database;
};
# specialArgs = { };
};
metrics = nixpkgs.lib.nixosSystem {
@ -74,9 +68,7 @@ in
./metrics
agenix.nixosModules.default
];
specialArgs = {
pkgs-caddy = pkgs-caddy "x86_64-linux";
};
# specialArgs = { };
};
}