diff options
| author | Max Audron <audron@cocaine.farm> | 2025-02-22 14:30:35 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-02-22 14:30:35 +0100 |
| commit | 4f7207090ffe66debb82ab67315629c6063322fd (patch) | |
| tree | c24cc4414971db617e544c7f36834c0b51e33a4b /flake.nix | |
| parent | rtorrent: use xmlrpc-c for compat with *arr (diff) | |
add litellm proxy
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 114 |
1 files changed, 92 insertions, 22 deletions
@@ -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" + ]; }; } |
