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

Loading…
Cancel
Save