add flake-parts

This commit is contained in:
andromeda
2026-01-03 17:28:28 +01:00
parent 0fee255cbf
commit 3cee358293
2 changed files with 35 additions and 56 deletions

View File

@@ -4,6 +4,10 @@
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@@ -21,10 +25,12 @@
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
nvf = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
phoenix = {
url = "github:celenityy/Phoenix";
@@ -33,10 +39,12 @@
stylix = {
url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
};
outputs = {
outputs = inputs @ {
agenix,
flake-parts,
home-manager,
impermanence,
nixos-mailserver,
@@ -95,10 +103,17 @@
}
noshell.nixosModules.default
]);
in {
nixosConfigurations =
builtins.mapAttrs
(hostname: value: configurationWithHomeManager value)
machines;
};
in
flake-parts.lib.mkFlake {inherit inputs;} (top @ {
config,
withSystem,
moduleWithSystem,
...
}: {
systems = ["x86_64-linux"];
flake.nixosConfigurations =
builtins.mapAttrs
(hostname: value: configurationWithHomeManager value)
machines;
});
}