feat: refactoring configuration with options to make it more modular

This commit is contained in:
Ryan Yin
2023-12-23 19:34:13 +08:00
parent 1f08d10ac7
commit b75b79057b
106 changed files with 289 additions and 279 deletions

View File

@@ -1,6 +1,3 @@
{...}: {
imports = [
./container.nix
./kubernetes.nix
];
{mylib, ...}: {
imports = mylib.scanPaths ./.;
}

View File

@@ -1,16 +1,3 @@
{...}: {
imports = [
../server
./cloud
./container
./neovim
./terminal
./development.nix
./helix.nix
./media.nix
./shell.nix
./yazi.nix
];
{mylib, ...}: {
imports = mylib.scanPaths ./.;
}

View File

@@ -11,7 +11,10 @@
{
xdg.configFile = {
# astronvim's config
"nvim".source = astronvim;
"nvim" = {
source = astronvim;
force = true;
};
# my custom astronvim config, astronvim will load it after base config
# https://github.com/AstroNvim/AstroNvim/blob/v3.32.0/lua/astronvim/bootstrap.lua#L15-L16

View File

@@ -1,7 +1,3 @@
{...}: {
imports = [
./alacritty.nix
./kitty.nix
./wezterm.nix
];
{mylib, ...}: {
imports = mylib.scanPaths ./.;
}

View File

@@ -1,13 +1,3 @@
{...}: {
imports = [
./shells
./tmux
./zellij
./bat.nix
./btop.nix
./core.nix
./git.nix
./starship.nix
];
{mylib, ...}: {
imports = mylib.scanPaths ./.;
}