{ description = "Spacebar's services"; inputs = { nixpkgs = { url = "github:NixOS/nixpkgs/nixos-unstable"; }; home-manager = { url = "github:nix-community/home-manager/master"; }; secrets = { url = "git+http://secrets.internal.spacebar.chat/"; flake = false; }; spacebarchat-server-master = { url = "github:spacebarchat/server/master"; }; #moreinputs }; outputs = { self, nixpkgs, home-manager, secrets, spacebarchat-server-master }: { nixosConfigurations = { Spacebar-nginx = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./host/Spacebar-nginx/configuration.nix ./hardware-configuration.nix home-manager.nixosModules.home-manager ]; specialArgs = { inherit home-manager; inherit spacebarchat-server-master; #morespecialargs secrets = import secrets { inherit (nixpkgs) lib; }; }; }; Spacebar-synapse = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./host/Spacebar-synapse/configuration.nix ./hardware-configuration.nix home-manager.nixosModules.home-manager ]; specialArgs = { inherit home-manager; secrets = import secrets { inherit (nixpkgs) lib; }; }; }; Spacebar-postgres = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./host/Spacebar-postgres/configuration.nix ./hardware-configuration.nix home-manager.nixosModules.home-manager ]; specialArgs = { inherit home-manager; secrets = import secrets { inherit (nixpkgs) lib; }; }; }; Spacebar-monitoring = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./host/Spacebar-monitoring/configuration.nix ./hardware-configuration.nix home-manager.nixosModules.home-manager ]; specialArgs = { inherit home-manager; secrets = import secrets { inherit (nixpkgs) lib; }; }; }; }; }; }