mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Switch to 4 space indentation
This commit is contained in:
parent
a4cc33577c
commit
d7aed49725
32 changed files with 796 additions and 783 deletions
|
|
@ -7,7 +7,21 @@
|
|||
options.myConfig.vscode.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.vscode.enable {
|
||||
home.packages = [pkgs.nil];
|
||||
home.packages = let
|
||||
alejandra4 = pkgs.alejandra.overrideAttrs {
|
||||
passthru.tests.version = lib.mkForce {};
|
||||
postPatch = ''
|
||||
substituteInPlace src/alejandra/src/builder.rs \
|
||||
--replace '2 * build_ctx.indentation' '4 * build_ctx.indentation'
|
||||
substituteInPlace src/alejandra/src/rules/string.rs \
|
||||
--replace 'format!(" {}", line)' 'format!(" {}", line)'
|
||||
rm -r src/alejandra/tests
|
||||
'';
|
||||
};
|
||||
in [
|
||||
pkgs.nil
|
||||
alejandra4
|
||||
];
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
|
|
@ -16,7 +30,6 @@
|
|||
mutableExtensionsDir = false;
|
||||
extensions = [
|
||||
pkgs.vscode-extensions.jnoortheen.nix-ide
|
||||
pkgs.vscode-extensions.kamadorueda.alejandra
|
||||
pkgs.vscode-extensions.pkief.material-icon-theme
|
||||
pkgs.vscode-extensions.mkhl.direnv
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue