33 lines
938 B
Nix
33 lines
938 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
juanfont-headscale = {
|
|
url = "github:juanfont/headscale/v0.23.0-alpha2";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, agenix, juanfont-headscale }:
|
|
let
|
|
overlay-juanfont-headscale = final: prev: {
|
|
juanfont-headscale = juanfont-headscale.packages.${prev.system};
|
|
glauth = prev.callPackage ./pkgs/glauth.nix {};
|
|
};
|
|
in {
|
|
nixosConfigurations.samsehu = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
({config, pkgs, ...}: { nixpkgs.overlays = [ overlay-juanfont-headscale ]; })
|
|
./agenix-config-module.nix
|
|
./configuration.nix
|
|
./services/glauth.nix
|
|
agenix.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
}
|