Flake: simplified configuration
This commit is contained in:
parent
127fc7f418
commit
b7f38fa122
1 changed files with 483 additions and 487 deletions
10
flake.nix
10
flake.nix
|
|
@ -71,12 +71,10 @@
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
# Use flake-parts for modular structure
|
# Use flake-parts for modular structure
|
||||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } ({ self, withSystem, inputs, ... }: {
|
||||||
# Support all systems defined in inputs.systems
|
# Support all systems defined in inputs.systems
|
||||||
systems = import inputs.systems;
|
systems = import inputs.systems;
|
||||||
imports = [
|
imports = [ inputs.git-hooks.flakeModule ];
|
||||||
inputs.git-hooks.flakeModule
|
|
||||||
({ self, withSystem, inputs, ... }: {
|
|
||||||
|
|
||||||
# Per-system configuration (applies to each system independently)
|
# Per-system configuration (applies to each system independently)
|
||||||
perSystem = { config, pkgs, system, ... }: {
|
perSystem = { config, pkgs, system, ... }: {
|
||||||
|
|
@ -614,7 +612,5 @@
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
});
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue