2023-12-26 17:48:59 +01:00
|
|
|
# /etc/nixos/flake.nix
|
|
|
|
{
|
|
|
|
description = "flake for grimmauld-nixos-server";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
nixpkgs = {
|
|
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
};
|
2023-12-27 12:20:29 +01:00
|
|
|
nixos-matrix-modules = {
|
|
|
|
url = "git+https://github.com/dali99/nixos-matrix-modules?submodules=1";
|
|
|
|
flake = true;
|
|
|
|
};
|
2023-12-26 17:48:59 +01:00
|
|
|
};
|
|
|
|
|
2023-12-27 12:20:29 +01:00
|
|
|
outputs = { nixos-matrix-modules, self, nixpkgs, agenix }: let
|
2023-12-26 17:48:59 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
|
|
grimmauld-nixos-server = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
|
|
|
agenix.nixosModules.default
|
2023-12-27 12:20:29 +01:00
|
|
|
nixos-matrix-modules.nixosModules.default
|
2023-12-26 17:48:59 +01:00
|
|
|
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|