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";
|
|
|
|
};
|
2024-01-10 00:25:03 -07:00
|
|
|
|
|
|
|
glauth = {
|
|
|
|
url = "github:leroycep/glauth";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
glauth-sqlite = {
|
|
|
|
url = "github:leroycep/glauth-sqlite";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-29 20:19:33 -07:00
|
|
|
};
|
|
|
|
|
2024-01-10 00:25:03 -07:00
|
|
|
outputs = { self, nixpkgs, agenix, juanfont-headscale, glauth, glauth-sqlite }: {
|
|
|
|
packages.x86_64-linux = let pkgs = import nixpkgs { system = "x86_64-linux"; }; in rec {
|
2024-01-09 12:52:08 -07:00
|
|
|
cockpit-tailscale = pkgs.callPackage ./pkgs/cockpit-tailscale.nix {};
|
|
|
|
cockpit-zfs-manager = pkgs.callPackage ./pkgs/cockpit-zfs-manager.nix {};
|
|
|
|
};
|
2024-01-09 12:23:12 -07:00
|
|
|
|
2024-01-06 12:30:05 -07:00
|
|
|
nixosConfigurations.samsehu = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2024-01-09 12:23:12 -07:00
|
|
|
({config, pkgs, ...}: {
|
|
|
|
nixpkgs.overlays = [ (final: prev: {
|
|
|
|
juanfont-headscale = juanfont-headscale.packages.${prev.system};
|
2024-01-10 00:25:03 -07:00
|
|
|
glauth = glauth.packages.${prev.system}.glauth.v2;
|
|
|
|
glauth-sqlite = glauth-sqlite.packages.${prev.system}.glauth-sqlite;
|
2024-01-09 12:23:12 -07:00
|
|
|
cockpit-tailscale = self.packages.${prev.system}.cockpit-tailscale;
|
2024-01-09 12:52:08 -07:00
|
|
|
cockpit-zfs-manager = self.packages.${prev.system}.cockpit-zfs-manager;
|
2024-01-09 12:23:12 -07:00
|
|
|
})];
|
|
|
|
})
|
2024-01-06 12:30:05 -07:00
|
|
|
./agenix-config-module.nix
|
|
|
|
./configuration.nix
|
2024-01-07 13:43:00 -07:00
|
|
|
./services/glauth.nix
|
2024-01-30 03:40:56 -07:00
|
|
|
./services/komga.nix
|
2024-01-06 12:30:05 -07:00
|
|
|
agenix.nixosModules.default
|
|
|
|
];
|
|
|
|
};
|
2023-12-29 20:19:33 -07:00
|
|
|
};
|
|
|
|
}
|