Compare commits

...

2 commits

Author SHA1 Message Date
de7a2753df
flatpak: Remove not use applications
All checks were successful
check / check (push) Successful in 33s
2024-09-15 13:59:16 +02:00
1a0c925449
modules: Revert vscode from flatpak to modules
If needed to be installed with flatpak, it can be installed from Discover
2024-09-15 13:54:43 +02:00
4 changed files with 55 additions and 8 deletions

View file

@ -12,7 +12,6 @@ in
};
config = mkIf cfg.enable {
services.flatpak = {
enable = true;
@ -24,19 +23,12 @@ in
{ appId = "net.lutris.Lutris"; origin = "flathub"; }
# Pro
{ appId = "com.slack.Slack"; origin = "flathub"; }
{ appId = "com.skype.Client"; origin = "flathub"; }
{ 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"; }
{ appId = "io.gitlab.news_flash.NewsFlash"; origin = "flathub"; }
{ appId = "org.videolan.VLC"; origin = "flathub"; }
{ appId = "com.obsproject.Studio"; origin = "flathub"; }
{ appId = "io.github.achetagames.epic_asset_manager"; origin = "flathub"; }
];
};
};

View file

@ -4,6 +4,7 @@
imports = [
../common.nix
./apps
./editors
./desktop
./shell
];

View file

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

View file

@ -0,0 +1,47 @@
{ 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
];
};
};
}