mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
feat: use nix-topology flake parts module
This commit is contained in:
parent
bc15e9d9ef
commit
78904fed18
2 changed files with 5 additions and 28 deletions
|
@ -1,30 +1,7 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
(
|
||||
{
|
||||
lib,
|
||||
flake-parts-lib,
|
||||
...
|
||||
}:
|
||||
flake-parts-lib.mkTransposedPerSystemModule {
|
||||
name = "topology";
|
||||
file = ./flake-module.nix;
|
||||
option = lib.mkOption {
|
||||
type = lib.types.unspecified;
|
||||
};
|
||||
}
|
||||
)
|
||||
inputs.nix-topology.flakeModule
|
||||
];
|
||||
|
||||
perSystem = {pkgs, ...}: {
|
||||
topology = import inputs.nix-topology {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./topology
|
||||
{
|
||||
inherit (inputs.self) nixosConfigurations;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
perSystem.topology.modules = [./.];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue