profiles: convert to list same as modules
This commit is contained in:
parent
ae303b39fd
commit
a3dcc4f6bc
14
flake.nix
14
flake.nix
@ -29,14 +29,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nixosModules = let
|
nixosModules = let
|
||||||
moduleList = import ./modules;
|
prep = map (path: {
|
||||||
|
|
||||||
modulesAttrs = listToAttrs (map (path: {
|
|
||||||
name = removeSuffix ".nix" (baseNameOf path);
|
name = removeSuffix ".nix" (baseNameOf path);
|
||||||
value = import path;
|
value = import path;
|
||||||
}) moduleList);
|
});
|
||||||
|
|
||||||
profilesAttrs = { profiles = import ./profiles; };
|
moduleList = import ./modules;
|
||||||
|
|
||||||
|
modulesAttrs = listToAttrs (prep moduleList);
|
||||||
|
|
||||||
|
profilesList = import ./profiles;
|
||||||
|
|
||||||
|
profilesAttrs = { profiles = listToAttrs (prep profilesList); };
|
||||||
in modulesAttrs // profilesAttrs;
|
in modulesAttrs // profilesAttrs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{
|
[
|
||||||
graphical = import ./graphical;
|
./graphical
|
||||||
sway = import ./graphical/sway;
|
./graphical/sway
|
||||||
qutebrowser = import ./graphical/qutebrowser;
|
./graphical/qutebrowser
|
||||||
develop = import ./develop;
|
./develop
|
||||||
zsh = import ./develop/zsh;
|
./develop/zsh
|
||||||
tmux = import ./develop/tmux;
|
./develop/tmux
|
||||||
kakoune = import ./develop/kakoune;
|
./develop/kakoune
|
||||||
misc = import ./misc;
|
./misc
|
||||||
games = import ./game;
|
./games
|
||||||
}
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user