@@ -4,4 +4,3 @@
|
|||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.gnupg.agent.enable = true;
|
programs.gnupg.agent.enable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -4,4 +4,3 @@
|
|||||||
libraries = [ ];
|
libraries = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,4 +5,3 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{ inputs, lib, pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@@ -95,4 +95,3 @@
|
|||||||
})) (lib.attrsets.filterAttrs (name: config: config.isNormalUser) config.users.users);
|
})) (lib.attrsets.filterAttrs (name: config: config.isNormalUser) config.users.users);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -32,4 +32,3 @@
|
|||||||
})) (lib.attrsets.filterAttrs (name: config: config.isNormalUser) config.users.users);
|
})) (lib.attrsets.filterAttrs (name: config: config.isNormalUser) config.users.users);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -15,4 +15,3 @@
|
|||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
68
users/common/configs/vscode/default.nix
Normal file
68
users/common/configs/vscode/default.nix
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./langs/nix.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
sharedModules = [{
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
mutableExtensionsDir = false;
|
||||||
|
userSettings = {
|
||||||
|
"editor.accessibilitySupport" = "off";
|
||||||
|
"editor.cursorBlinking" = "phase";
|
||||||
|
"editor.cursorSmoothCaretAnimation" = "on";
|
||||||
|
"editor.formatOnPaste" = true;
|
||||||
|
"editor.formatOnSave" = true;
|
||||||
|
"editor.formatOnType" = true;
|
||||||
|
"editor.indentSize" = "tabSize";
|
||||||
|
"editor.inlineSuggest.enabled" = true;
|
||||||
|
"editor.largeFileOptimizations" = false;
|
||||||
|
"editor.linkedEditing" = true;
|
||||||
|
"editor.renderFinalNewline" = "on";
|
||||||
|
"editor.smoothScrolling" = true;
|
||||||
|
"editor.stickyScroll.enabled" = true;
|
||||||
|
"editor.suggestSelection" = "first";
|
||||||
|
"editor.unicodeHighlight.includeComments" = true;
|
||||||
|
"editor.unicodeHighlight.nonBasicASCII" = true;
|
||||||
|
"explorer.confirmDelete" = false;
|
||||||
|
"explorer.confirmDragAndDrop" = false;
|
||||||
|
"explorer.confirmPasteNative" = false;
|
||||||
|
"files.autoSave" = "afterDelay";
|
||||||
|
"files.eol" = "\n";
|
||||||
|
"files.insertFinalNewline" = true;
|
||||||
|
"files.trimFinalNewlines" = true;
|
||||||
|
"files.trimTrailingWhitespace" = true;
|
||||||
|
"git.allowForcePush" = true;
|
||||||
|
"git.alwaysSignOff" = true;
|
||||||
|
"git.autofetch" = "all";
|
||||||
|
"git.closeDiffOnOperation" = true;
|
||||||
|
"git.confirmForcePush" = false;
|
||||||
|
"git.confirmSync" = false;
|
||||||
|
"git.enableCommitSigning" = true;
|
||||||
|
"git.enableSmartCommit" = true;
|
||||||
|
"git.ignoreRebaseWarning" = true;
|
||||||
|
"git.openRepositoryInParentFolders" = "always";
|
||||||
|
"git.path" = "${pkgs.git}/bin/git";
|
||||||
|
"mergeEditor.diffAlgorithm" = "advanced";
|
||||||
|
"open-in-browser.default" = "firefox";
|
||||||
|
"security.workspace.trust.enabled" = false;
|
||||||
|
"telemetry.telemetryLevel" = "off";
|
||||||
|
"terminal.external.linuxExec" = "kitty";
|
||||||
|
"terminal.integrated.confirmOnExit" = "hasChildProcesses";
|
||||||
|
"terminal.integrated.copyOnSelection" = true;
|
||||||
|
"window.autoDetectHighContrast" = false;
|
||||||
|
"window.menuBarVisibility" = "toggle";
|
||||||
|
"workbench.editor.historyBasedLanguageDetection" = true;
|
||||||
|
"workbench.list.smoothScrolling" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
|
||||||
|
users = lib.attrsets.mapAttrs (user: config: ({
|
||||||
|
home.persistence."/persist${config.home}".directories = [ ".config/Code" ];
|
||||||
|
})) (lib.attrsets.filterAttrs (name: config: config.isNormalUser) config.users.users);
|
||||||
|
};
|
||||||
|
}
|
23
users/common/configs/vscode/langs/nix.nix
Normal file
23
users/common/configs/vscode/langs/nix.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
sharedModules = [{
|
||||||
|
programs.vscode = {
|
||||||
|
userSettings = {
|
||||||
|
"nix.enableLanguageServer" = true;
|
||||||
|
"nix.formatterPath" = "nixpkgs-fmt";
|
||||||
|
"nix.serverSettings" = {};
|
||||||
|
};
|
||||||
|
extensions = with pkgs; with vscode-extensions; [
|
||||||
|
jnoortheen.nix-ide
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nil
|
||||||
|
nixpkgs-fmt
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
}
|
@@ -1,4 +1,4 @@
|
|||||||
{ config, inputs, lib, pkgs, ... }:
|
{ inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -16,11 +16,13 @@
|
|||||||
./configs/neovim
|
./configs/neovim
|
||||||
./configs/stylix
|
./configs/stylix
|
||||||
./configs/zsh
|
./configs/zsh
|
||||||
|
./configs/vscode
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "bak";
|
backupFileExtension = "bak";
|
||||||
|
useGlobalPkgs = true;
|
||||||
sharedModules = [{
|
sharedModules = [{
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
|
Reference in New Issue
Block a user