mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
chore: update to nixos 25.05
This commit is contained in:
parent
e3b550bd82
commit
d25e24c15b
11 changed files with 160 additions and 184 deletions
|
|
@ -25,7 +25,7 @@ in {
|
|||
enable = true;
|
||||
package = pkgsUnstable.firefox;
|
||||
profiles.default = {
|
||||
extensions = with extensions; [
|
||||
extensions.packages = with extensions; [
|
||||
# Privacy
|
||||
ublock-origin
|
||||
clearurls
|
||||
|
|
|
|||
|
|
@ -6,15 +6,7 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
vscodePackage = pkgsUnstable.vscode.overrideAttrs (_old: let
|
||||
version = "1.99.0";
|
||||
in {
|
||||
src = pkgs.fetchurl {
|
||||
name = "VSCode_${version}_linux-x64.tar.gz";
|
||||
url = "https://update.code.visualstudio.com/${version}/linux-x64/stable";
|
||||
sha256 = "sha256-ojUaCVrrQozw3CYkWEimAphMoxhEb3a+TffPV9VAurk=";
|
||||
};
|
||||
});
|
||||
vscodePackage = pkgsUnstable.vscode;
|
||||
|
||||
vscode-extensions = inputs.nix-vscode-extensions.extensions.${pkgs.system};
|
||||
vscodePkgs = vscode-extensions.vscode-marketplace // vscode-extensions.vscode-marketplace-release; # Prefer release over pre-release
|
||||
|
|
@ -32,98 +24,100 @@ in {
|
|||
programs.vscode = {
|
||||
enable = true;
|
||||
package = vscodePackage;
|
||||
enableUpdateCheck = true;
|
||||
enableExtensionUpdateCheck = true;
|
||||
keybindings = [
|
||||
{
|
||||
"key" = "ctrl+shift+p";
|
||||
"command" = "editor.action.formatDocument";
|
||||
}
|
||||
];
|
||||
userSettings = lib.mkMerge [
|
||||
{
|
||||
# General
|
||||
"extensions.ignoreRecommendations" = true;
|
||||
"telemetry.telemetryLevel" = "off";
|
||||
profiles.default = {
|
||||
enableUpdateCheck = true;
|
||||
enableExtensionUpdateCheck = true;
|
||||
keybindings = [
|
||||
{
|
||||
"key" = "ctrl+shift+p";
|
||||
"command" = "editor.action.formatDocument";
|
||||
}
|
||||
];
|
||||
userSettings = lib.mkMerge [
|
||||
{
|
||||
# General
|
||||
"extensions.ignoreRecommendations" = true;
|
||||
"telemetry.telemetryLevel" = "off";
|
||||
|
||||
# Editor
|
||||
"editor.linkedEditing" = true;
|
||||
"files.exclude" = {
|
||||
"**/*.egg-info" = true;
|
||||
"**/__pycache__" = true;
|
||||
};
|
||||
# Editor
|
||||
"editor.linkedEditing" = true;
|
||||
"files.exclude" = {
|
||||
"**/*.egg-info" = true;
|
||||
"**/__pycache__" = true;
|
||||
};
|
||||
|
||||
# Files
|
||||
"files.autoSave" = "afterDelay";
|
||||
# Files
|
||||
"files.autoSave" = "afterDelay";
|
||||
|
||||
# Remote
|
||||
"remote.SSH.useLocalServer" = false;
|
||||
"remote.SSH.remotePlatform" = lib.mapAttrs (_name: _value: "linux") config.fireproof.home-manager.programs.ssh.matchBlocks;
|
||||
|
||||
# AI
|
||||
"github.copilot.editor.enableAutoCompletions" = true;
|
||||
"github.copilot.enable" = {
|
||||
"*" = true;
|
||||
"plaintext" = true;
|
||||
"markdown" = true;
|
||||
"scminput" = true;
|
||||
};
|
||||
"chat.agent.enabled" = true;
|
||||
"github.copilot.chat.agent.thinkingTool" = true;
|
||||
"github.copilot.chat.codesearch.enabled" = true;
|
||||
"github.copilot.nextEditSuggestions.enabled" = true;
|
||||
|
||||
# Theme
|
||||
"workbench.colorTheme" = "Darcula Theme from IntelliJ";
|
||||
"window.titleBarStyle" = "custom";
|
||||
"editor.fontFamily" = "'Hack Nerd Font', 'Hack', 'monospace', monospace";
|
||||
|
||||
# Keybindings
|
||||
"workbench.commandPalette.experimental.suggestCommands" = true; # Emulates IntelliJ's "Search Everywhere"
|
||||
|
||||
# nix-ide
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.serverPath" = lib.getExe pkgs.nil;
|
||||
"nix.serverSettings" = {
|
||||
nil.formatting.command = ["nix" "fmt" "--" "--"];
|
||||
};
|
||||
}
|
||||
(mkFormatter "esbenp.prettier-vscode" ["json" "jsonc" "markdown" "css" "scss" "typescript" "typescriptreact" "html" "yaml"])
|
||||
(mkFormatter "charliermarsh.ruff" ["python"])
|
||||
];
|
||||
extensions = with vscodePkgs; [
|
||||
# Remote
|
||||
"remote.SSH.useLocalServer" = false;
|
||||
"remote.SSH.remotePlatform" = lib.mapAttrs (_name: _value: "linux") config.fireproof.home-manager.programs.ssh.matchBlocks;
|
||||
(allowUnfree ms-vscode-remote.remote-ssh)
|
||||
|
||||
# AI
|
||||
"github.copilot.editor.enableAutoCompletions" = true;
|
||||
"github.copilot.enable" = {
|
||||
"*" = true;
|
||||
"plaintext" = true;
|
||||
"markdown" = true;
|
||||
"scminput" = true;
|
||||
};
|
||||
"chat.agent.enabled" = true;
|
||||
"github.copilot.chat.agent.thinkingTool" = true;
|
||||
"github.copilot.chat.codesearch.enabled" = true;
|
||||
"github.copilot.nextEditSuggestions.enabled" = true;
|
||||
(allowUnfree github.copilot)
|
||||
(allowUnfree github.copilot-chat)
|
||||
|
||||
# Git(hub)
|
||||
github.vscode-pull-request-github
|
||||
|
||||
# Python
|
||||
ms-pyright.pyright
|
||||
ms-python.python
|
||||
charliermarsh.ruff
|
||||
|
||||
# JavaScript
|
||||
dbaeumer.vscode-eslint
|
||||
esbenp.prettier-vscode
|
||||
|
||||
# Nix
|
||||
jnoortheen.nix-ide
|
||||
|
||||
# Other languages
|
||||
nefrob.vscode-just-syntax
|
||||
redhat.vscode-yaml
|
||||
|
||||
# Theme
|
||||
"workbench.colorTheme" = "Darcula Theme from IntelliJ";
|
||||
"window.titleBarStyle" = "custom";
|
||||
"editor.fontFamily" = "'Hack Nerd Font', 'Hack', 'monospace', monospace";
|
||||
trinm1709.dracula-theme-from-intellij
|
||||
|
||||
# Keybindings
|
||||
"workbench.commandPalette.experimental.suggestCommands" = true; # Emulates IntelliJ's "Search Everywhere"
|
||||
|
||||
# nix-ide
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.serverPath" = lib.getExe pkgs.nil;
|
||||
"nix.serverSettings" = {
|
||||
nil.formatting.command = ["nix" "fmt" "--" "--"];
|
||||
};
|
||||
}
|
||||
(mkFormatter "esbenp.prettier-vscode" ["json" "jsonc" "markdown" "css" "scss" "typescript" "typescriptreact" "html" "yaml"])
|
||||
(mkFormatter "charliermarsh.ruff" ["python"])
|
||||
];
|
||||
extensions = with vscodePkgs; [
|
||||
# Remote
|
||||
(allowUnfree ms-vscode-remote.remote-ssh)
|
||||
|
||||
# AI
|
||||
(allowUnfree github.copilot)
|
||||
(allowUnfree github.copilot-chat)
|
||||
|
||||
# Git(hub)
|
||||
github.vscode-pull-request-github
|
||||
|
||||
# Python
|
||||
ms-pyright.pyright
|
||||
ms-python.python
|
||||
charliermarsh.ruff
|
||||
|
||||
# JavaScript
|
||||
dbaeumer.vscode-eslint
|
||||
esbenp.prettier-vscode
|
||||
|
||||
# Nix
|
||||
jnoortheen.nix-ide
|
||||
|
||||
# Other languages
|
||||
nefrob.vscode-just-syntax
|
||||
redhat.vscode-yaml
|
||||
|
||||
# Theme
|
||||
trinm1709.dracula-theme-from-intellij
|
||||
|
||||
# Keybindings
|
||||
k--kato.intellij-idea-keybindings
|
||||
];
|
||||
k--kato.intellij-idea-keybindings
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue