From 4f7207090ffe66debb82ab67315629c6063322fd Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sat, 22 Feb 2025 14:30:35 +0100 Subject: add litellm proxy --- flake.nix | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 92 insertions(+), 22 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1ba44f7..4145a52 100644 --- a/flake.nix +++ b/flake.nix @@ -15,9 +15,21 @@ pastor.url = "gitlab:cocainefarm/pastor/feature/nix"; }; - outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nixpkgs-master, flake-parts, nixinate, ... }: + outputs = + inputs@{ + self, + nixpkgs, + nixpkgs-unstable, + nixpkgs-master, + flake-parts, + nixinate, + ... + }: flake-parts.lib.mkFlake { inherit inputs; } { - imports = [ nixinate.flakeModule ./lib ]; + imports = [ + nixinate.flakeModule + ./lib + ]; flake = let system = "x86_64-linux"; @@ -38,35 +50,93 @@ }; }; - overlays = { config, pkgs, ... }: { - nixpkgs.overlays = [ overlay-unstable overlay-master ]; - }; + overlays = + { config, pkgs, ... }: + { + nixpkgs.overlays = [ + overlay-unstable + overlay-master + ]; + }; - mkSystem = modules: nixpkgs.lib.nixosSystem { - inherit specialArgs system; - modules = modules ++ (with self.nixosModules; [ - nixinate.nixosModules.default - overlays + mkSystem = + modules: + nixpkgs.lib.nixosSystem { + inherit specialArgs system; + modules = + modules + ++ (with self.nixosModules; [ + nixinate.nixosModules.default + overlays - common - users - wireguard - crypto - ]); - }; + common + users + wireguard + crypto + ]); + }; in { nixosModules = import ./modules; nixosConfigurations = with self.nixosModules; { # vultr-image = mkSystem [ common users image vultr ]; - ettves = mkSystem [ (import ./machines/ettves) zfs teamspeak postgresql quassel powerdns acme authentik hydra homeassistant games languagetool git laplace catinator pastor ]; - phaenn = mkSystem [ (import ./machines/phaenn) zfs acme tlmp ]; - fra01 = mkSystem [ (import ./machines/fra01) vultr bgp powerdns acme garage ]; - nyc01 = mkSystem [ (import ./machines/nyc01) vultr bgp powerdns acme garage ]; - sin01 = mkSystem [ (import ./machines/sin01) vultr bgp powerdns acme garage ]; + ettves = mkSystem [ + (import ./machines/ettves) + zfs + teamspeak + postgresql + quassel + powerdns + acme + authentik + hydra + homeassistant + games + languagetool + git + laplace + catinator + pastor + litellm + ]; + phaenn = mkSystem [ + (import ./machines/phaenn) + zfs + acme + tlmp + ]; + fra01 = mkSystem [ + (import ./machines/fra01) + vultr + bgp + powerdns + acme + garage + ]; + nyc01 = mkSystem [ + (import ./machines/nyc01) + vultr + bgp + powerdns + acme + garage + ]; + sin01 = mkSystem [ + (import ./machines/sin01) + vultr + bgp + powerdns + acme + garage + ]; }; }; - systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; + systems = [ + "x86_64-linux" + "x86_64-darwin" + "aarch64-linux" + "aarch64-darwin" + ]; }; } -- cgit v1.2.3