mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
home-manager: extract common configuration from module
This commit is contained in:
parent
10865a1545
commit
395a489532
2 changed files with 8 additions and 7 deletions
|
|
@ -22,13 +22,10 @@
|
|||
|
||||
extra = modulesFromDir ./extra;
|
||||
|
||||
named = lib.mapAttrs' (name: path: {
|
||||
name = "named-" + name;
|
||||
value.imports = [
|
||||
self.homeModules.commonModules
|
||||
path
|
||||
];
|
||||
}) (modulesFromDir ./named);
|
||||
named =
|
||||
lib.mapAttrs'
|
||||
(name: lib.nameValuePair ("named-" + name))
|
||||
(modulesFromDir ./named);
|
||||
in
|
||||
lib.mergeAttrsList [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue