mirror of
https://github.com/materusPL/nixos-config
synced 2026-04-02 16:17:21 +02:00
Add theia to .gitignore. VSCodium config. neovim theme change
This commit is contained in:
parent
7a2647d5ae
commit
e916b8ca78
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
\#*\#
|
||||
.vscode
|
||||
.vscode
|
||||
.theia
|
||||
@ -73,10 +73,13 @@ if vim.fn.executable("git") == 1 then
|
||||
lazy = false,
|
||||
},
|
||||
{
|
||||
"mofiqul/dracula.nvim",
|
||||
"samharju/synthweave.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {}
|
||||
opts = {},
|
||||
config = function()
|
||||
vim.cmd.colorscheme("synthweave")
|
||||
end
|
||||
},
|
||||
{
|
||||
"romgrk/barbar.nvim",
|
||||
@ -145,5 +148,4 @@ if vim.fn.executable("git") == 1 then
|
||||
}
|
||||
require('nvim-treesitter').install { 'lua' }
|
||||
end
|
||||
vim.cmd [[colorscheme dracula]]
|
||||
end
|
||||
|
||||
@ -61,6 +61,7 @@
|
||||
sys-nixpkgs = if stable then nixpkgs else nixpkgs-unstable;
|
||||
materusArgs = {
|
||||
inherit files;
|
||||
inherit arch;
|
||||
inputs = inp;
|
||||
flake-path = path;
|
||||
host-path = path + "/nix-config/host/${host}";
|
||||
@ -96,6 +97,7 @@
|
||||
};
|
||||
materusArgs = {
|
||||
inherit files;
|
||||
inherit arch;
|
||||
inputs = inp;
|
||||
flake-path = path;
|
||||
home-path = path + "/nix-config/home/${user}";
|
||||
|
||||
@ -102,12 +102,6 @@ in
|
||||
kdePackages.kcalc
|
||||
vim
|
||||
nano
|
||||
(vscodium.fhsWithPackages (
|
||||
ps: with ps; [
|
||||
nixfmt-rfc-style
|
||||
nixd
|
||||
]
|
||||
))
|
||||
|
||||
obsidian
|
||||
git-crypt
|
||||
|
||||
@ -1,4 +1,13 @@
|
||||
{ pkgs, materusArgs, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
materusArgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
jsonFormat = pkgs.formats.json { };
|
||||
in
|
||||
{
|
||||
mkk.neovim.enable = true;
|
||||
|
||||
@ -31,7 +40,115 @@
|
||||
|
||||
libreoffice-qt6-fresh
|
||||
|
||||
direnv
|
||||
jsonnet
|
||||
jsonnet-language-server
|
||||
];
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
mutableExtensionsDir = true;
|
||||
profiles.default.enableExtensionUpdateCheck = true;
|
||||
profiles.default.extensions =
|
||||
let
|
||||
market = (
|
||||
materusArgs.inputs.nix-vscode-extensions.extensions."${materusArgs.arch}".forVSCodeVersion
|
||||
config.programs.vscode.package.version
|
||||
);
|
||||
marketNv = (materusArgs.inputs.nix-vscode-extensions.extensions."${materusArgs.arch}");
|
||||
in
|
||||
with market.vscode-marketplace;
|
||||
with marketNv.vscode-marketplace;
|
||||
[
|
||||
# Python
|
||||
#ms-python.vscode-pylance
|
||||
ms-python.python
|
||||
ms-python.debugpy
|
||||
ms-python.vscode-python-envs
|
||||
|
||||
# Git
|
||||
eamodio.gitlens
|
||||
donjayamanne.githistory
|
||||
waderyan.gitblame
|
||||
codezombiech.gitignore
|
||||
|
||||
# Lua
|
||||
sumneko.lua
|
||||
|
||||
# VSCode
|
||||
kerrickstaley.layered-settings
|
||||
mkhl.direnv
|
||||
betterthantomorrow.joyride
|
||||
robbowen.synthwave-vscode
|
||||
|
||||
# Jsonnet
|
||||
grafana.vscode-jsonnet
|
||||
|
||||
# Nix
|
||||
jnoortheen.nix-ide
|
||||
];
|
||||
package = (
|
||||
pkgs.vscodium.fhsWithPackages (
|
||||
ps: with ps; [
|
||||
nixfmt-rfc-style
|
||||
nixd
|
||||
direnv
|
||||
jsonnet
|
||||
jsonnet-language-server
|
||||
]
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
xdg.configFile."VSCodium/User/settings.nix.jsonnet".enable = false;
|
||||
home.activation.mutableFileGeneration =
|
||||
let
|
||||
source = jsonFormat.generate "settings.nix" {
|
||||
|
||||
"window.dialogStyle" = "custom";
|
||||
"window.titleBarStyle" = "custom";
|
||||
"workbench.colorTheme" = "SynthWave '84";
|
||||
"editor.fontFamily" = "'Hack Nerd Font', 'monospace', monospace";
|
||||
|
||||
"direnv.path.executable" = "${pkgs.direnv}/bin/direnv";
|
||||
|
||||
"typescript.tsserver.maxTsServerMemory" = 1024 * 8;
|
||||
"typescript.tsserver.nodePath" = "${pkgs.nodejs}/bin/node";
|
||||
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.formatterPath" = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
|
||||
"nix.serverPath" = "${pkgs.nixd}/bin/nixd";
|
||||
"nix.serverSettings" = {
|
||||
|
||||
"nixd" = {
|
||||
"nixpkgs" = {
|
||||
"expr" = "import (builtins.getFlake \"/mkk/config\").inputs.nixpkgs { }";
|
||||
};
|
||||
"formatting" = {
|
||||
"command" = [
|
||||
"nixfmt"
|
||||
];
|
||||
};
|
||||
"options" = {
|
||||
"nixos" = {
|
||||
"expr" = "(builtins.getFlake (builtins.toString \"/mkk/config\" )).nixosConfigurations.materusPC.options";
|
||||
};
|
||||
"home-manager" = {
|
||||
"expr" = "(builtins.getFlake (builtins.toString \"/mkk/config\")).homeConfigurations.materus.options";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
target = config.xdg.configFile."VSCodium/User/settings.nix.jsonnet".target;
|
||||
command = ''
|
||||
echo "Copying mutable home files for $HOME"
|
||||
$VERBOSE_ECHO "${source} -> ${target}"
|
||||
$DRY_RUN_CMD cp --remove-destination --no-preserve=mode ${source} ${target}
|
||||
'';
|
||||
in
|
||||
(lib.hm.dag.entryAfter [ "linkGeneration" ] command);
|
||||
|
||||
xdg.dataFile."java-runtimes/graalvm-oracle-17".source = pkgs.graalvmPackages.graalvm-oracle_17;
|
||||
xdg.dataFile."java-runtimes/graalvm-oracle-latest".source = pkgs.graalvmPackages.graalvm-oracle;
|
||||
xdg.dataFile."java-runtimes/openjdk21".source = pkgs.jdk21;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user