mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
refactor: lib, flake.nix
This commit is contained in:
parent
a0f4384034
commit
b71bb5794a
27 changed files with 540 additions and 706 deletions
|
|
@ -1,3 +1,4 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
moduleNames = [
|
||||
"laptop"
|
||||
|
|
@ -12,13 +13,5 @@ let
|
|||
"filesystem"
|
||||
"firefox"
|
||||
];
|
||||
|
||||
mkImports = names: builtins.listToAttrs (map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = import ./${name}.nix;
|
||||
})
|
||||
names);
|
||||
|
||||
in
|
||||
mkImports moduleNames
|
||||
lib.swarselsystems.mkModules moduleNames "home"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue