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

Loading…
Cancel
Save