mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
refactor: package and module generation
This commit is contained in:
parent
3a272b1fe6
commit
2cf03a3243
4 changed files with 131 additions and 77 deletions
|
|
@ -1,8 +1,19 @@
|
|||
{
|
||||
wallpaper = import ./wallpaper.nix;
|
||||
hardware = import ./hardware.nix;
|
||||
setup = import ./setup.nix;
|
||||
impermanence = import ./impermanence.nix;
|
||||
filesystem = import ./filesystem.nix;
|
||||
input = import ./input.nix;
|
||||
}
|
||||
let
|
||||
moduleNames = [
|
||||
"wallpaper"
|
||||
"hardware"
|
||||
"setup"
|
||||
"impermanence"
|
||||
"filesystem"
|
||||
"input"
|
||||
];
|
||||
|
||||
mkImports = names: builtins.listToAttrs (map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = import ./${name}.nix;
|
||||
})
|
||||
names);
|
||||
|
||||
in
|
||||
mkImports moduleNames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue