more flake changes and added module impot helpers

This commit is contained in:
ISnortPennies 2023-01-25 13:13:51 -05:00
parent fea6f8b961
commit 0a10e29581
6 changed files with 96 additions and 51 deletions

View file

@ -1,16 +1,25 @@
{
pkgs,
settings,
lib,
...
}: {
imports = [
./librewolf.nix
./sxhkd.nix
./theme.nix
./picom.nix
./spicetify.nix
./neovim
];
imports = let
modules = [
"librewolf"
"sxhkd"
"theme"
"picom"
"spicetify"
];
in
lib.lists.forEach modules (
m:
./. + ("/" + m + ".nix")
)
++ [
./neovim
];
xsession.numlock.enable = true;
home = {
homeDirectory = "/home/${settings.username}";