aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix114
1 files changed, 92 insertions, 22 deletions
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"
+ ];
};
}