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,8 +1,20 @@
{settings, ...}: {
imports = [
./theme.nix
./neovim
];
{
settings,
lib,
...
}: {
imports = let
modules = [
"theme"
];
in
lib.lists.forEach modules (
m:
./. + ("/" + m + ".nix")
)
++ [
./neovim
];
home = {
username = "root";
homeDirectory = "/root";