1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

feat: finish transition to flake-parts

This commit is contained in:
oddlama 2024-06-01 00:31:38 +02:00
parent 1424778bc2
commit 78b92f06cc
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
24 changed files with 237 additions and 277 deletions

30
topology/flake-module.nix Normal file
View file

@ -0,0 +1,30 @@
{inputs, ...}: {
imports = [
(
{
lib,
flake-parts-lib,
...
}:
flake-parts-lib.mkTransposedPerSystemModule {
name = "topology";
file = ./flake-module.nix;
option = lib.mkOption {
type = lib.types.unspecified;
};
}
)
];
perSystem = {pkgs, ...}: {
topology = import inputs.nix-topology {
inherit pkgs;
modules = [
./topology
{
inherit (inputs.self) nixosConfigurations;
}
];
};
};
}