Compare commits
No commits in common. "fff5b682ba334c2200486cd662e9093d54a4906c" and "7cbbfdfdd5030aac3dcf4891e8b84758983b6746" have entirely different histories.
fff5b682ba
...
7cbbfdfdd5
2 changed files with 51 additions and 79 deletions
24
flake.lock
generated
24
flake.lock
generated
|
@ -71,11 +71,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739841949,
|
"lastModified": 1739634831,
|
||||||
"narHash": "sha256-lSOXdgW/1zi/SSu7xp71v+55D5Egz8ACv0STkj7fhbs=",
|
"narHash": "sha256-xFnU+uUl48Icas2wPQ+ZzlL2O3n8f6J2LrzNK9f2nng=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "15dbf8cebd8e2655a883b74547108e089f051bf0",
|
"rev": "fa5746ecea1772cf59b3f34c5816ab3531478142",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -406,11 +406,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740254115,
|
"lastModified": 1739676861,
|
||||||
"narHash": "sha256-MwxDtYB/MSGZlr/xS+ExGYH2QgHk73ShD40shxjad/Y=",
|
"narHash": "sha256-X86ptHMNVuu1Z9leL0YV2E/oxD2IgPYrYANPcvFYpNo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "cb3f6e9b59d3a5e51ef9f7da2b8418d5c72aaef8",
|
"rev": "eb44c1601ed99896525e983bc9b15eb8b4d5879e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -614,11 +614,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739866667,
|
"lastModified": 1739446958,
|
||||||
"narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
|
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
|
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -713,11 +713,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740253674,
|
"lastModified": 1739711065,
|
||||||
"narHash": "sha256-5uORHfjmbFBOcPLdpqk5sRUoeg1Hl2lSs1qDUlQ1P0Y=",
|
"narHash": "sha256-SE/1miuM4tho8ktGceEER7rbWeRs/ySU47eC6ymcB5k=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "730b78756948a6fffbdc6045fd71c47f87ff340f",
|
"rev": "57a7d7b18e9a9a9727f06ed0130b3c5f54c1cc04",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -11,77 +11,49 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# Inspired by https://github.com/khaneliman/khanelinix/blob/1cc1ff0435671804666cdc732a0b792178441e2f/modules/home/programs/graphical/editors/vscode/default.nix
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableUpdateCheck = false;
|
||||||
|
enableExtensionUpdateCheck = false;
|
||||||
|
|
||||||
profiles =
|
userSettings = {
|
||||||
let
|
"files.autoSave" = "onFocusChange";
|
||||||
commonExtensions = with pkgs.vscode-extensions; [
|
"emmet.includeLanguages" = {
|
||||||
|
"phoenix-heex" = "html";
|
||||||
|
};
|
||||||
|
"git.autofetch" = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
userTasks = {};
|
||||||
|
|
||||||
|
# Waiting https://github.com/nix-community/home-manager/pull/5640 to support multi-profiles support
|
||||||
|
extensions = with pkgs; with vscode-extensions; [
|
||||||
# Direnv to automatically Load Dev Env
|
# Direnv to automatically Load Dev Env
|
||||||
mkhl.direnv
|
mkhl.direnv
|
||||||
|
|
||||||
# Nix
|
# Nix
|
||||||
bbenoist.nix
|
bbenoist.nix
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
rust-lang.rust-analyzer
|
||||||
|
tamasfe.even-better-toml
|
||||||
|
|
||||||
|
# Phoenix
|
||||||
|
phoenixframework.phoenix
|
||||||
|
elixir-lsp.vscode-elixir-ls
|
||||||
|
|
||||||
|
# Ruby
|
||||||
|
shopify.ruby-lsp
|
||||||
|
|
||||||
|
# C/C++ Support
|
||||||
|
ms-vscode.cpptools
|
||||||
|
|
||||||
# Improve error display
|
# Improve error display
|
||||||
usernamehw.errorlens
|
usernamehw.errorlens
|
||||||
|
|
||||||
|
# TS Error
|
||||||
|
yoavbls.pretty-ts-errors
|
||||||
];
|
];
|
||||||
|
|
||||||
commonSettings = {
|
|
||||||
"files.autoSave" = "onFocusChange";
|
|
||||||
"git.autofetch" = true;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
default = {
|
|
||||||
extensions = commonExtensions;
|
|
||||||
enableUpdateCheck = false;
|
|
||||||
enableExtensionUpdateCheck = false;
|
|
||||||
userSettings = commonSettings;
|
|
||||||
};
|
|
||||||
|
|
||||||
C_CPP = {
|
|
||||||
extensions =
|
|
||||||
with pkgs.vscode-extensions;
|
|
||||||
commonExtensions
|
|
||||||
++ [ ms-vscode.cpptools ];
|
|
||||||
};
|
|
||||||
|
|
||||||
Phoenix = {
|
|
||||||
extensions =
|
|
||||||
with pkgs.vscode-extensions;
|
|
||||||
commonExtensions
|
|
||||||
++ [ phoenixframework.phoenix elixir-lsp.vscode-elixir-ls ];
|
|
||||||
|
|
||||||
userSettings = commonSettings // {
|
|
||||||
"emmet.includeLanguages" = {
|
|
||||||
"phoenix-heex" = "html";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
Ruby = {
|
|
||||||
extensions =
|
|
||||||
with pkgs.vscode-extensions;
|
|
||||||
commonExtensions
|
|
||||||
++ [ shopify.ruby-lsp ];
|
|
||||||
};
|
|
||||||
|
|
||||||
Rust = {
|
|
||||||
extensions =
|
|
||||||
with pkgs.vscode-extensions;
|
|
||||||
commonExtensions
|
|
||||||
++ [ tamasfe.even-better-toml ]; # rust-lang.rust-analyzer not compile for now
|
|
||||||
};
|
|
||||||
|
|
||||||
Typescript = {
|
|
||||||
extensions =
|
|
||||||
with pkgs.vscode-extensions;
|
|
||||||
commonExtensions
|
|
||||||
++ [ yoavbls.pretty-ts-errors ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue