fix different vscode, the brain dead way

This commit is contained in:
Tristan 2023-04-25 18:13:50 +01:00
parent be05c654bc
commit 782e7da908
5 changed files with 30 additions and 21 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, user, name, ... }:
{ config, pkgs, user, name, editor, ... }:
# https://nix-community.github.io/home-manager/options.html
let
my-deps = {
@ -56,7 +56,7 @@ let
open-code = (pkgs.writeShellScriptBin "open-code" ''
code_dir=~/Documents/code
ls $code_dir/ | ${my-deps.menu} | ${my-deps.xargs} -I_ codium $code_dir/_
ls $code_dir/ | ${my-deps.menu} | ${my-deps.xargs} -I_ my-editor $code_dir/_
'');
};

View file

@ -19,6 +19,9 @@ in
libreoffice
ansible
thunderbird
(pkgs.writeShellScriptBin "my-editor" ''
code
'')
(pkgs.makeDesktopItem {
name = "teams";
desktopName = "Microsoft Teams";
@ -69,9 +72,6 @@ in
programs.firefox.enable = true;
home.shellAliases = {
codium = lib.mkForce "code";
};
programs.vscode = {
package = lib.mkForce pkgs.vscode;
extensions = with pkgs; [

View file

@ -15,6 +15,9 @@
handbrake
monero-gui
xmrig
(pkgs.writeShellScriptBin "my-editor" ''
codium
'')
];
services.nextcloud-client.enable = true;