2023-06-01 14:39:07 -05:00
|
|
|
{
|
2023-06-09 14:24:51 -05:00
|
|
|
inputs = {
|
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-09 14:24:51 -05:00
|
|
|
};
|
2023-06-26 16:19:14 -05:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-23.05";
|
2023-06-09 14:24:51 -05:00
|
|
|
};
|
|
|
|
|
2023-06-26 14:57:56 -05:00
|
|
|
outputs = { self, nixpkgs, agenix, ... }@attrs:
|
2023-06-09 14:24:51 -05:00
|
|
|
let
|
|
|
|
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";
|
|
|
|
in {
|
2023-06-26 16:19:14 -05:00
|
|
|
devShell.x86_64-linux = shell.dev;
|
2023-06-25 13:27:19 -05:00
|
|
|
|
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
|
|
|
|
|
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-09 14:24:51 -05:00
|
|
|
|
2023-06-26 16:19:14 -05:00
|
|
|
./system/containers.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-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
|
|
|
|
2023-06-26 12:53:48 -05:00
|
|
|
age = {
|
|
|
|
secrets = {
|
|
|
|
keys.file = ./secrets/keys.age;
|
|
|
|
sezycei.file = ./secrets/sezycei.age;
|
|
|
|
};
|
2023-06-26 16:19:14 -05:00
|
|
|
identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
2023-06-26 12:53:48 -05:00
|
|
|
};
|
2023-06-09 14:24:51 -05:00
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2023-06-01 14:39:07 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|