modules: Move vscode to flatpak
All checks were successful
check / check (push) Successful in 28s

This commit is contained in:
Florian RICHER 2024-06-04 21:59:55 +02:00
parent 819cd005c7
commit 8e722cfe5a
9 changed files with 3 additions and 72 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
result
*.swp
*.qcow2
*.qcow2
.idea/

View file

@ -13,10 +13,6 @@
kitty.enable = true;
};
editors = {
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;

View file

@ -13,10 +13,6 @@
kitty.enable = true;
};
editors = {
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;

View file

@ -13,10 +13,6 @@
kitty.enable = true;
};
editors = {
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;

View file

@ -13,10 +13,6 @@
kitty.enable = true;
};
editors = {
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;

View file

@ -30,6 +30,7 @@ in
{ appId = "org.mozilla.Thunderbird"; origin = "flathub"; }
{ appId = "ch.protonmail.protonmail-bridge"; origin = "flathub"; }
{ appId = "org.kde.neochat"; origin = "flathub"; }
{ appId = "com.visualstudio.code"; origin = "flathub"; }
# Loisir
{ appId = "com.spotify.Client"; origin = "flathub"; }

View file

@ -3,7 +3,6 @@
{
imports = [
./apps
./editors
./desktop
./shell
];

View file

@ -1,7 +0,0 @@
{ config, pkgs, ... }:
{
imports = [
./vscode
];
}

View file

@ -1,47 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.home.editors.vscode;
in
{
options.modules.home.editors.vscode = {
enable = mkEnableOption ''
Enable vscode with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.vscode = {
enable = true;
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
userSettings = {
"files.autoSave" = "onFocusChange";
"emmet.includeLanguages" = {
"phoenix-heex" = "html";
};
"git.autofetch" = true;
};
userTasks = {};
extensions = with pkgs; with vscode-extensions; [
# Nix
bbenoist.nix
# Rust
rust-lang.rust-analyzer
serayuzgur.crates
tamasfe.even-better-toml
# Phoenix
phoenixframework.phoenix
elixir-lsp.vscode-elixir-ls
# Ruby
shopify.ruby-lsp
];
};
};
}