treewide: Update deprecated options for NixOS 25.05
This commit is contained in:
parent
6653fed1c2
commit
a630607350
4 changed files with 74 additions and 72 deletions
|
@ -14,7 +14,7 @@ in
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
};
|
};
|
||||||
hardware.pulseaudio.enable = false; # this theoretically defaults to false but something else seems to be flipping it
|
services.pulseaudio.enable = false; # this theoretically defaults to false but something else seems to be flipping it
|
||||||
environment.systemPackages = with pkgs; [ helvum ]; # patchbay
|
environment.systemPackages = with pkgs; [ helvum ]; # patchbay
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ in
|
||||||
languagePacks = [ "en-GB" ];
|
languagePacks = [ "en-GB" ];
|
||||||
|
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
extensions = with inputs.firefox-addons.packages.${pkgs.hostPlatform.system}; [
|
extensions.packages = with inputs.firefox-addons.packages.${pkgs.hostPlatform.system}; [
|
||||||
bitwarden
|
bitwarden
|
||||||
ublock-origin
|
ublock-origin
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,79 +7,81 @@ in
|
||||||
{
|
{
|
||||||
programs.vscode = mkIf isGraphical {
|
programs.vscode = mkIf isGraphical {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableExtensionUpdateCheck = false;
|
|
||||||
enableUpdateCheck = false;
|
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
extensions = with pkgs.vscode-extensions; [
|
|
||||||
charliermarsh.ruff
|
|
||||||
dbaeumer.vscode-eslint
|
|
||||||
eamodio.gitlens
|
|
||||||
golang.go
|
|
||||||
jdinhlife.gruvbox
|
|
||||||
jnoortheen.nix-ide
|
|
||||||
matangover.mypy
|
|
||||||
mkhl.direnv
|
|
||||||
ms-python.black-formatter
|
|
||||||
ms-python.python
|
|
||||||
rust-lang.rust-analyzer
|
|
||||||
vadimcn.vscode-lldb
|
|
||||||
];
|
|
||||||
mutableExtensionsDir = false;
|
mutableExtensionsDir = false;
|
||||||
userSettings = {
|
profiles.default = {
|
||||||
"css.format.spaceAroundSelectorSeparator" = true;
|
enableExtensionUpdateCheck = false;
|
||||||
"css.format.newlineBetweenSelectors" = false;
|
enableUpdateCheck = false;
|
||||||
"debug.allowBreakpointsEverywhere" = true;
|
extensions = with pkgs.vscode-extensions; [
|
||||||
"extensions.autoUpdate" = false;
|
charliermarsh.ruff
|
||||||
"files.insertFinalNewline" = true;
|
dbaeumer.vscode-eslint
|
||||||
"git.autofetch" = true;
|
eamodio.gitlens
|
||||||
"git.confirmSync" = false;
|
golang.go
|
||||||
"git.enableSmartCommit" = true;
|
jdinhlife.gruvbox
|
||||||
"git.inputValidation" = true;
|
jnoortheen.nix-ide
|
||||||
"git.inputValidationSubjectLength" = null;
|
matangover.mypy
|
||||||
"javascript.updateImportsOnFileMove.enabled" = "always";
|
mkhl.direnv
|
||||||
"nix.enableLanguageServer" = true;
|
ms-python.black-formatter
|
||||||
"nix.serverPath" = "${pkgs.nil}/bin/nil";
|
ms-python.python
|
||||||
"nix.serverSettings".nil = {
|
rust-lang.rust-analyzer
|
||||||
diagnostics.ignored = [ "unused_binding" "unused_with" ];
|
vadimcn.vscode-lldb
|
||||||
formatting.command = [ "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt" ];
|
];
|
||||||
nix.flake.autoArchive = true;
|
userSettings = {
|
||||||
};
|
"css.format.spaceAroundSelectorSeparator" = true;
|
||||||
"rust-analyzer.check.command" = "clippy";
|
"css.format.newlineBetweenSelectors" = false;
|
||||||
"terminal.integrated.allowChords" = false;
|
"debug.allowBreakpointsEverywhere" = true;
|
||||||
"terminal.integrated.defaultProfile.linux" = "zsh";
|
"extensions.autoUpdate" = false;
|
||||||
"workbench.colorTheme" = "Gruvbox Dark Medium";
|
"files.insertFinalNewline" = true;
|
||||||
|
"git.autofetch" = true;
|
||||||
"[go]" = {
|
"git.confirmSync" = false;
|
||||||
"editor.defaultFormatter" = "golang.go";
|
"git.enableSmartCommit" = true;
|
||||||
"editor.formatOnSave" = false;
|
"git.inputValidation" = true;
|
||||||
};
|
"git.inputValidationSubjectLength" = null;
|
||||||
"go.alternateTools" = {
|
"javascript.updateImportsOnFileMove.enabled" = "always";
|
||||||
"go" = "${pkgs.go}/bin/go";
|
"nix.enableLanguageServer" = true;
|
||||||
"golangci-lint" = "${pkgs.golangci-lint}/bin/golangci-lint";
|
"nix.serverPath" = "${pkgs.nil}/bin/nil";
|
||||||
"gopls" = "${pkgs.gopls}/bin/gopls";
|
"nix.serverSettings".nil = {
|
||||||
"dlv" = "${pkgs.delve}/bin/dlv";
|
diagnostics.ignored = [ "unused_binding" "unused_with" ];
|
||||||
"staticcheck" = "${pkgs.go-tools}/bin/staticcheck";
|
formatting.command = [ "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt" ];
|
||||||
};
|
nix.flake.autoArchive = true;
|
||||||
"go.lintTool" = "golangci-lint";
|
|
||||||
"go.toolsManagement.checkForUpdates" = "off";
|
|
||||||
"gopls" = {
|
|
||||||
"formatting.gofumpt" = true;
|
|
||||||
"ui.semanticTokens" = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
"[python]" = {
|
|
||||||
"editor.defaultFormatter" = "ms-python.black-formatter";
|
|
||||||
"editor.formatOnSave" = true;
|
|
||||||
"editor.codeActionsOnSave" = {
|
|
||||||
"source.fixAll" = "explicit";
|
|
||||||
"source.organizeImports" = "explicit";
|
|
||||||
};
|
};
|
||||||
|
"rust-analyzer.check.command" = "clippy";
|
||||||
|
"terminal.integrated.allowChords" = false;
|
||||||
|
"terminal.integrated.defaultProfile.linux" = "zsh";
|
||||||
|
"workbench.colorTheme" = "Gruvbox Dark Medium";
|
||||||
|
|
||||||
|
"[go]" = {
|
||||||
|
"editor.defaultFormatter" = "golang.go";
|
||||||
|
"editor.formatOnSave" = false;
|
||||||
|
};
|
||||||
|
"go.alternateTools" = {
|
||||||
|
"go" = "${pkgs.go}/bin/go";
|
||||||
|
"golangci-lint" = "${pkgs.golangci-lint}/bin/golangci-lint";
|
||||||
|
"gopls" = "${pkgs.gopls}/bin/gopls";
|
||||||
|
"dlv" = "${pkgs.delve}/bin/dlv";
|
||||||
|
"staticcheck" = "${pkgs.go-tools}/bin/staticcheck";
|
||||||
|
};
|
||||||
|
"go.lintTool" = "golangci-lint";
|
||||||
|
"go.toolsManagement.checkForUpdates" = "off";
|
||||||
|
"gopls" = {
|
||||||
|
"formatting.gofumpt" = true;
|
||||||
|
"ui.semanticTokens" = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"[python]" = {
|
||||||
|
"editor.defaultFormatter" = "ms-python.black-formatter";
|
||||||
|
"editor.formatOnSave" = true;
|
||||||
|
"editor.codeActionsOnSave" = {
|
||||||
|
"source.fixAll" = "explicit";
|
||||||
|
"source.organizeImports" = "explicit";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"python.createEnvironment.contentButton" = "show";
|
||||||
|
"python.defaultInterpreterPath" = "${pkgs.python3}/bin/python";
|
||||||
|
"ruff.nativeServer" = "on";
|
||||||
|
"ruff.path" = [ "${pkgs.ruff}/bin/ruff" ];
|
||||||
|
"mypy.dmypyExecutable" = "${pkgs.mypy}/bin/dmypy";
|
||||||
};
|
};
|
||||||
"python.createEnvironment.contentButton" = "show";
|
|
||||||
"python.defaultInterpreterPath" = "${pkgs.python3}/bin/python";
|
|
||||||
"ruff.nativeServer" = "on";
|
|
||||||
"ruff.path" = "${pkgs.ruff}/bin/ruff";
|
|
||||||
"mypy.dmypyExecutable" = "${pkgs.mypy}/bin/dmypy";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
theme = ""; # defer to powerlevel10k
|
theme = ""; # defer to powerlevel10k
|
||||||
};
|
};
|
||||||
|
|
||||||
initExtra = ''
|
initContent = ''
|
||||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
source ${./.p10k.zsh}
|
source ${./.p10k.zsh}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue