moved vscode to own file
This commit is contained in:
		
							parent
							
								
									2d6b16950b
								
							
						
					
					
						commit
						8f4e70c0d0
					
				
					 3 changed files with 80 additions and 70 deletions
				
			
		| 
						 | 
					@ -40,7 +40,6 @@ to update passwords run: `nix shell nixpkgs#sops -c sops secrets/user-passwords.
 | 
				
			||||||
# Tasks:
 | 
					# Tasks:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Tech Debt
 | 
					## Tech Debt
 | 
				
			||||||
- vscode extensions should be in own flake (make sure to add the nixpkgs.overlays in it too)
 | 
					 | 
				
			||||||
- join config for systemd.tmpfiles.rules and service directory bindings
 | 
					- join config for systemd.tmpfiles.rules and service directory bindings
 | 
				
			||||||
- monitor configuration in `~/.config/monitors.xml` should be sym linked to `/run/gdm/.config/monitors.xml` (https://www.reddit.com/r/NixOS/comments/u09cz9/home_manager_create_my_own_symlinks_automatically/)
 | 
					- monitor configuration in `~/.config/monitors.xml` should be sym linked to `/run/gdm/.config/monitors.xml` (https://www.reddit.com/r/NixOS/comments/u09cz9/home_manager_create_my_own_symlinks_automatically/)
 | 
				
			||||||
- move applications in server environment into their own flakes
 | 
					- move applications in server environment into their own flakes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,75 +6,9 @@
 | 
				
			||||||
  inputs,
 | 
					  inputs,
 | 
				
			||||||
  ...
 | 
					  ...
 | 
				
			||||||
}: {
 | 
					}: {
 | 
				
			||||||
  nixpkgs = {
 | 
					  imports = [
 | 
				
			||||||
    overlays = [
 | 
					    ./vscode.nix
 | 
				
			||||||
      inputs.nix-vscode-extensions.overlays.default
 | 
					  ];
 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  programs = {
 | 
					 | 
				
			||||||
    bash.shellAliases = lib.mkIf config.isFullUser {
 | 
					 | 
				
			||||||
      code = "codium";
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    vscode = let
 | 
					 | 
				
			||||||
      extensions = inputs.nix-vscode-extensions.extensions.${pkgs.system};
 | 
					 | 
				
			||||||
      open-vsx = extensions.open-vsx;
 | 
					 | 
				
			||||||
      vscode-marketplace = extensions.vscode-marketplace;
 | 
					 | 
				
			||||||
    in {
 | 
					 | 
				
			||||||
      enable = true;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      package = pkgs.vscodium;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      mutableExtensionsDir = false;
 | 
					 | 
				
			||||||
      enableUpdateCheck = false;
 | 
					 | 
				
			||||||
      enableExtensionUpdateCheck = false;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      userSettings = {
 | 
					 | 
				
			||||||
        "workbench.colorTheme" = "Atom One Dark";
 | 
					 | 
				
			||||||
        "cSpell.userWords" = [
 | 
					 | 
				
			||||||
          "webdav"
 | 
					 | 
				
			||||||
        ];
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      extensions = with extensions.open-vsx;
 | 
					 | 
				
			||||||
        [
 | 
					 | 
				
			||||||
          # vs code feel extensions
 | 
					 | 
				
			||||||
          ms-vscode.atom-keybindings
 | 
					 | 
				
			||||||
          akamud.vscode-theme-onedark
 | 
					 | 
				
			||||||
          streetsidesoftware.code-spell-checker
 | 
					 | 
				
			||||||
          streetsidesoftware.code-spell-checker-german
 | 
					 | 
				
			||||||
          streetsidesoftware.code-spell-checker-italian
 | 
					 | 
				
			||||||
          jeanp413.open-remote-ssh
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          # nix extensions
 | 
					 | 
				
			||||||
          pinage404.nix-extension-pack
 | 
					 | 
				
			||||||
          jnoortheen.nix-ide
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          # html extensions
 | 
					 | 
				
			||||||
          formulahendry.auto-rename-tag
 | 
					 | 
				
			||||||
          ms-vscode.live-server
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          # js extensions
 | 
					 | 
				
			||||||
          dsznajder.es7-react-js-snippets
 | 
					 | 
				
			||||||
          dbaeumer.vscode-eslint
 | 
					 | 
				
			||||||
          standard.vscode-standard
 | 
					 | 
				
			||||||
          firsttris.vscode-jest-runner
 | 
					 | 
				
			||||||
          stylelint.vscode-stylelint
 | 
					 | 
				
			||||||
          tauri-apps.tauri-vscode
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          # misc extensions
 | 
					 | 
				
			||||||
          bungcip.better-toml
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          # the number at the start of the name here doesnt resolve nicely so we have to refernce it as a part of open-vsx directly instead of though with
 | 
					 | 
				
			||||||
          open-vsx."10nates".ollama-autocoder
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
        ++ (with extensions.vscode-marketplace; [
 | 
					 | 
				
			||||||
          # js extensions
 | 
					 | 
				
			||||||
          karyfoundation.nearley
 | 
					 | 
				
			||||||
        ]);
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  home = {
 | 
					  home = {
 | 
				
			||||||
    packages = lib.mkIf (config.isFullUser || config.isThinUser) (
 | 
					    packages = lib.mkIf (config.isFullUser || config.isThinUser) (
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										77
									
								
								users/leyla/vscode.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								users/leyla/vscode.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,77 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  lib,
 | 
				
			||||||
 | 
					  config,
 | 
				
			||||||
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  inputs,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}: {
 | 
				
			||||||
 | 
					  nixpkgs = {
 | 
				
			||||||
 | 
					    overlays = [
 | 
				
			||||||
 | 
					      inputs.nix-vscode-extensions.overlays.default
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  programs = {
 | 
				
			||||||
 | 
					    bash.shellAliases = lib.mkIf config.isFullUser {
 | 
				
			||||||
 | 
					      code = "codium";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    vscode = let
 | 
				
			||||||
 | 
					      extensions = inputs.nix-vscode-extensions.extensions.${pkgs.system};
 | 
				
			||||||
 | 
					      open-vsx = extensions.open-vsx;
 | 
				
			||||||
 | 
					      vscode-marketplace = extensions.vscode-marketplace;
 | 
				
			||||||
 | 
					    in {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      package = pkgs.vscodium;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      mutableExtensionsDir = false;
 | 
				
			||||||
 | 
					      enableUpdateCheck = false;
 | 
				
			||||||
 | 
					      enableExtensionUpdateCheck = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      userSettings = {
 | 
				
			||||||
 | 
					        "workbench.colorTheme" = "Atom One Dark";
 | 
				
			||||||
 | 
					        "cSpell.userWords" = [
 | 
				
			||||||
 | 
					          "webdav"
 | 
				
			||||||
 | 
					        ];
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      extensions = with extensions.open-vsx;
 | 
				
			||||||
 | 
					        [
 | 
				
			||||||
 | 
					          # vs code feel extensions
 | 
				
			||||||
 | 
					          ms-vscode.atom-keybindings
 | 
				
			||||||
 | 
					          akamud.vscode-theme-onedark
 | 
				
			||||||
 | 
					          streetsidesoftware.code-spell-checker
 | 
				
			||||||
 | 
					          streetsidesoftware.code-spell-checker-german
 | 
				
			||||||
 | 
					          streetsidesoftware.code-spell-checker-italian
 | 
				
			||||||
 | 
					          jeanp413.open-remote-ssh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          # nix extensions
 | 
				
			||||||
 | 
					          pinage404.nix-extension-pack
 | 
				
			||||||
 | 
					          jnoortheen.nix-ide
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          # html extensions
 | 
				
			||||||
 | 
					          formulahendry.auto-rename-tag
 | 
				
			||||||
 | 
					          ms-vscode.live-server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          # js extensions
 | 
				
			||||||
 | 
					          dsznajder.es7-react-js-snippets
 | 
				
			||||||
 | 
					          dbaeumer.vscode-eslint
 | 
				
			||||||
 | 
					          standard.vscode-standard
 | 
				
			||||||
 | 
					          firsttris.vscode-jest-runner
 | 
				
			||||||
 | 
					          stylelint.vscode-stylelint
 | 
				
			||||||
 | 
					          tauri-apps.tauri-vscode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          # misc extensions
 | 
				
			||||||
 | 
					          bungcip.better-toml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          # the number at the start of the name here doesnt resolve nicely so we have to refernce it as a part of open-vsx directly instead of though with
 | 
				
			||||||
 | 
					          open-vsx."10nates".ollama-autocoder
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					        ++ (with extensions.vscode-marketplace; [
 | 
				
			||||||
 | 
					          # js extensions
 | 
				
			||||||
 | 
					          karyfoundation.nearley
 | 
				
			||||||
 | 
					        ]);
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue