Simplify module configuration

main
Julius Riegel 9 months ago
parent ff7e8d6c5c
commit a65c0f4669

@ -4,88 +4,74 @@ local config = silo.default_config
-- put your packages here -- put your packages here
config.packages = {} config.packages = {}
local default_mod = function(packages)
return {
enabled = true,
packages = packages
}
end
local mod = function(packages)
return {
enabled = false,
packages = packages
}
end
-- all software modules / package groups -- all software modules / package groups
config.modules = { config.modules = {
core = { core = default_mod {
enabled = true, 'nushell',
packages = { 'starship',
'nushell', 'wezterm',
'starship', 'helix',
'wezterm', 'zellij',
'helix', 'broot',
'zellij', 'bottom',
'broot', 'thefuck',
'bottom', 'hyperfine',
'thefuck', 'most',
'hyperfine', 'direnv',
'most', 'htop',
'direnv', 'neofetch',
'htop',
'neofetch',
}
}, },
fonts = { fonts = default_mod {
enabled = true, 'fontconfig',
packages = { 'fira-code-nerdfont',
'fontconfig', 'lexend',
'fira-code-nerdfont', 'joypixels',
'lexend',
'joypixels',
}
}, },
extras = { extras = mod {
enabled = false, 'librewolf',
packages = { 'spotify',
'librewolf',
'spotify',
}
}, },
node = { node = mod {
enabled = false, 'nodejs',
packages = { 'yarn',
'nodejs', 'biome',
'yarn', 'vscode-langservers-extracted',
'biome', 'nodePackages.typescript-language-server',
'vscode-langservers-extracted',
'nodePackages.typescript-language-server',
}
}, },
rust = { rust = mod {
enabled = false, 'rustup',
packages = { 'cargo-edit',
'rustup', 'cargo-release',
'cargo-edit', 'cargo-lambda',
'cargo-release',
'cargo-lambda',
}
}, },
lua = { lua = mod {
enabled = false, 'lua-language-server',
packages = {
'lua-language-server',
}
}, },
java = { java = mod {
enabled = false, 'jdk',
packages = { 'kotlin',
'jdk', 'kotlin-language-server',
'kotlin', 'jdt-language-server',
'kotlin-language-server', 'gradle',
'jdt-language-server',
'gradle',
}
}, },
graphql = { graphql = mod {
enabled = false, 'nodePackages.get-graphql-schema',
packages = {
'nodePackages.get-graphql-schema',
}
}, },
terraform = { terraform = mod {
enabled = false, 'terraform-ls',
packages = {
'terraform-ls',
}
} }
} }

Loading…
Cancel
Save