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
6
flake.lock
generated
6
flake.lock
generated
|
@ -1193,11 +1193,11 @@
|
||||||
"pre-commit-hooks": "pre-commit-hooks_3"
|
"pre-commit-hooks": "pre-commit-hooks_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715634843,
|
"lastModified": 1720814919,
|
||||||
"narHash": "sha256-YrECYhEXY7g8Ji5luq8mdRaLRGiwTPCSDEeVP91DyDY=",
|
"narHash": "sha256-g1HYi6C+URiou9MoFOPTZUYTPHISgF2g8KbhcqLiJyM=",
|
||||||
"owner": "oddlama",
|
"owner": "oddlama",
|
||||||
"repo": "nix-topology",
|
"repo": "nix-topology",
|
||||||
"rev": "9ed5c7b5c5cd5bed9e204e8b9d69f4be1954abd3",
|
"rev": "e7c64ea75a7dbdf984c0ac25fb44af88244ff5a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,30 +1,7 @@
|
||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
(
|
inputs.nix-topology.flakeModule
|
||||||
{
|
|
||||||
lib,
|
|
||||||
flake-parts-lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
flake-parts-lib.mkTransposedPerSystemModule {
|
|
||||||
name = "topology";
|
|
||||||
file = ./flake-module.nix;
|
|
||||||
option = lib.mkOption {
|
|
||||||
type = lib.types.unspecified;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
|
|
||||||
perSystem = {pkgs, ...}: {
|
perSystem.topology.modules = [./.];
|
||||||
topology = import inputs.nix-topology {
|
|
||||||
inherit pkgs;
|
|
||||||
modules = [
|
|
||||||
./topology
|
|
||||||
{
|
|
||||||
inherit (inputs.self) nixosConfigurations;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue