2023-06-01 14:39:07 -05:00
|
|
|
{
|
2023-06-27 13:01:30 -05:00
|
|
|
description = "eve-psr-nix0 - Home Server";
|
|
|
|
|
2023-06-09 14:24:51 -05:00
|
|
|
inputs = {
|
2023-06-27 13:01:30 -05:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-23.05";
|
|
|
|
|
2023-06-25 20:49:00 -05:00
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
2023-06-09 14:24:51 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-06-25 20:49:00 -05:00
|
|
|
inputs.darwin.follows = "";
|
2023-06-27 20:21:45 -05:00
|
|
|
inputs.home-manager.follows = "";
|
2023-06-09 14:24:51 -05:00
|
|
|
};
|
2023-06-27 13:01:30 -05:00
|
|
|
nix-serve-ng = {
|
|
|
|
url = github:aristanetworks/nix-serve-ng;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-09 14:24:51 -05:00
|
|
|
};
|
|
|
|
|
2023-06-27 13:20:42 -05:00
|
|
|
outputs = { self, nixpkgs, agenix, nix-serve-ng, ... }@attrs:
|
2023-06-09 14:24:51 -05:00
|
|
|
let
|
2023-06-30 19:51:06 -05:00
|
|
|
forEachSystem = nixpkgs.lib.genAttrs system;
|
2023-06-09 14:24:51 -05:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2023-06-26 16:19:14 -05:00
|
|
|
shell = import ./shell.nix { inherit agenix pkgs; };
|
2023-06-09 14:24:51 -05:00
|
|
|
system = "x86_64-linux";
|
2023-06-26 20:05:48 -05:00
|
|
|
in
|
|
|
|
{
|
2023-06-26 16:19:14 -05:00
|
|
|
devShell.x86_64-linux = shell.dev;
|
2023-06-26 20:05:48 -05:00
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
|
2023-06-30 19:35:17 -05:00
|
|
|
|
|
|
|
hydraJobs = {
|
2023-06-30 19:51:06 -05:00
|
|
|
build = shell.packages.${system}.format;
|
2023-06-30 19:35:17 -05:00
|
|
|
};
|
|
|
|
|
2023-06-27 15:07:48 -05:00
|
|
|
packages = shell.packages;
|
2023-06-25 13:27:19 -05:00
|
|
|
|
2023-06-09 14:24:51 -05:00
|
|
|
nixosConfigurations = {
|
|
|
|
eve-psr-nix0 = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
specialArgs = attrs;
|
|
|
|
modules = [
|
|
|
|
({ modulesPath, ... }: {
|
2023-06-25 13:27:19 -05:00
|
|
|
|
2023-06-26 16:30:36 -05:00
|
|
|
imports = [
|
|
|
|
agenix.nixosModules.default
|
2023-06-27 13:01:30 -05:00
|
|
|
nix-serve-ng.nixosModules.default
|
2023-06-09 14:24:51 -05:00
|
|
|
|
2023-06-26 20:05:48 -05:00
|
|
|
./application/containers.nix
|
|
|
|
./application/nginx.nix
|
|
|
|
|
|
|
|
./monitoring/nginx.nix
|
|
|
|
./monitoring/grafana.nix
|
|
|
|
./monitoring/prometheus.nix
|
|
|
|
./monitoring/loki.nix
|
|
|
|
./monitoring/promtail.nix
|
|
|
|
|
2023-06-27 15:34:11 -05:00
|
|
|
./system/age.nix
|
2023-06-27 19:41:33 -05:00
|
|
|
./system/dns.nix
|
2023-06-27 15:34:11 -05:00
|
|
|
./system/hardware.nix
|
|
|
|
./system/nix-conf.nix
|
2023-06-26 16:19:14 -05:00
|
|
|
./system/security.nix
|
2023-06-27 19:41:33 -05:00
|
|
|
./system/build-services.nix
|
2023-06-26 16:19:14 -05:00
|
|
|
./system/system.nix
|
|
|
|
./system/virtualisation.nix
|
2023-06-25 13:27:19 -05:00
|
|
|
|
2023-06-26 16:19:14 -05:00
|
|
|
./user/users.nix
|
|
|
|
];
|
2023-06-09 14:24:51 -05:00
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2023-06-01 14:39:07 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|