server-configuration/flake.nix

31 lines
850 B
Nix
Raw Normal View History

2023-12-29 20:19:33 -07:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-01-06 12:30:05 -07:00
juanfont-headscale = {
url = "github:juanfont/headscale/v0.23.0-alpha2";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-12-29 20:19:33 -07:00
};
2024-01-06 12:30:05 -07:00
outputs = { self, nixpkgs, agenix, juanfont-headscale }:
let
overlay-juanfont-headscale = final: prev: {
juanfont-headscale = juanfont-headscale.packages.${prev.system};
};
in {
nixosConfigurations.samsehu = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({config, pkgs, ...}: { nixpkgs.overlays = [ overlay-juanfont-headscale ]; })
./agenix-config-module.nix
./configuration.nix
agenix.nixosModules.default
];
};
2023-12-29 20:19:33 -07:00
};
}