eve-psr-nix0/flake.nix

67 lines
1.7 KiB
Nix
Raw Normal View History

2023-06-01 14:39:07 -05:00
{
description = "eve-psr-nix0 - Home Server";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.darwin.follows = "";
};
nix-serve-ng = {
url = github:aristanetworks/nix-serve-ng;
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-06-26 14:57:56 -05:00
outputs = { self, nixpkgs, agenix, ... }@attrs:
let
pkgs = import nixpkgs { inherit system; };
2023-06-26 16:19:14 -05:00
shell = import ./shell.nix { inherit agenix pkgs; };
system = "x86_64-linux";
in
{
2023-06-26 16:19:14 -05:00
devShell.x86_64-linux = shell.dev;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations = {
eve-psr-nix0 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = attrs;
modules = [
({ modulesPath, ... }: {
2023-06-26 16:30:36 -05:00
imports = [
agenix.nixosModules.default
nix-serve-ng.nixosModules.default
./application/containers.nix
./application/nginx.nix
./monitoring/nginx.nix
./monitoring/grafana.nix
./monitoring/prometheus.nix
./monitoring/loki.nix
./monitoring/promtail.nix
./system/age-configuration.nix
2023-06-26 16:30:36 -05:00
./system/hardware-configuration.nix
2023-06-26 16:19:14 -05:00
./system/nix-configuration.nix
./system/security.nix
./system/services.nix
./system/system.nix
./system/virtualisation.nix
2023-06-26 16:19:14 -05:00
./user/users.nix
];
system.stateVersion = "22.11";
})
];
};
2023-06-01 14:39:07 -05:00
};
};
}