Simplify module configuration

main
Julius Riegel 9 months ago
parent ff7e8d6c5c
commit a65c0f4669

@ -4,11 +4,22 @@ 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,
packages = {
'nushell', 'nushell',
'starship', 'starship',
'wezterm', 'wezterm',
@ -22,71 +33,46 @@ config.modules = {
'direnv', 'direnv',
'htop', 'htop',
'neofetch', 'neofetch',
}
}, },
fonts = { fonts = default_mod {
enabled = true,
packages = {
'fontconfig', 'fontconfig',
'fira-code-nerdfont', 'fira-code-nerdfont',
'lexend', 'lexend',
'joypixels', 'joypixels',
}
}, },
extras = { extras = mod {
enabled = false,
packages = {
'librewolf', 'librewolf',
'spotify', 'spotify',
}
}, },
node = { node = mod {
enabled = false,
packages = {
'nodejs', 'nodejs',
'yarn', 'yarn',
'biome', 'biome',
'vscode-langservers-extracted', 'vscode-langservers-extracted',
'nodePackages.typescript-language-server', 'nodePackages.typescript-language-server',
}
}, },
rust = { rust = mod {
enabled = false,
packages = {
'rustup', 'rustup',
'cargo-edit', 'cargo-edit',
'cargo-release', 'cargo-release',
'cargo-lambda', 'cargo-lambda',
}
}, },
lua = { lua = mod {
enabled = false,
packages = {
'lua-language-server', 'lua-language-server',
}
}, },
java = { java = mod {
enabled = false,
packages = {
'jdk', 'jdk',
'kotlin', 'kotlin',
'kotlin-language-server', 'kotlin-language-server',
'jdt-language-server', 'jdt-language-server',
'gradle', 'gradle',
}
}, },
graphql = { graphql = mod {
enabled = false,
packages = {
'nodePackages.get-graphql-schema', 'nodePackages.get-graphql-schema',
}
}, },
terraform = { terraform = mod {
enabled = false,
packages = {
'terraform-ls', 'terraform-ls',
} }
}
} }
return config return config

Loading…
Cancel
Save