forked from jan-leila/nix-config
		
	moved spellcheck to separate file
This commit is contained in:
		
							parent
							
								
									c38754530f
								
							
						
					
					
						commit
						db799a8253
					
				
					 8 changed files with 141 additions and 16 deletions
				
			
		|  | @ -6,7 +6,7 @@ | |||
|       # LC_ADDRESS = "en_IE.UTF-8"; # lets just get used to this one now | ||||
|       # LC_TELEPHONE = "en_IE.UTF-8"; # lets just get used to this one now | ||||
|       LC_MONETARY = "en_US.UTF-8"; # to be changed once I move | ||||
|       LC_PAPER = "en_US.UTF-8"; # convient for american printers until I move | ||||
|       LC_PAPER = "en_US.UTF-8"; # convenient for american printers until I move | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|   pkgs, | ||||
|   ... | ||||
| }: let | ||||
|   userConifg = osConfig.host.users.leyla; | ||||
|   userConfig = osConfig.host.users.leyla; | ||||
|   hardware = osConfig.host.hardware; | ||||
| in { | ||||
|   imports = [ | ||||
|  | @ -14,16 +14,16 @@ in { | |||
| 
 | ||||
|   home = { | ||||
|     packages = | ||||
|       lib.lists.optionals userConifg.isTerminalUser ( | ||||
|       lib.lists.optionals userConfig.isTerminalUser ( | ||||
|         with pkgs; [ | ||||
|           # comand line tools | ||||
|           # command line tools | ||||
|           yt-dlp | ||||
|           ffmpeg | ||||
|           imagemagick | ||||
|         ] | ||||
|       ) | ||||
|       ++ ( | ||||
|         lib.lists.optionals userConifg.isDesktopUser ( | ||||
|         lib.lists.optionals userConfig.isDesktopUser ( | ||||
|           with pkgs; [ | ||||
|             # helvetica font | ||||
|             aileron | ||||
|  |  | |||
							
								
								
									
										101
									
								
								homes/leyla/vscode/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										101
									
								
								homes/leyla/vscode/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,101 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   inputs, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: let | ||||
|   nix-development-enabled = osConfig.host.nix-development.enable; | ||||
| in { | ||||
|   nixpkgs = { | ||||
|     overlays = [ | ||||
|       inputs.nix-vscode-extensions.overlays.default | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   programs = { | ||||
|     bash.shellAliases = { | ||||
|       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 = lib.mkMerge [ | ||||
|         { | ||||
|           "workbench.colorTheme" = "Atom One Dark"; | ||||
|           "cSpell.language" = "en,de-DE,it"; | ||||
|           "cSpell.userWords" = import ./user-words.nix; | ||||
|         } | ||||
|         (lib.mkIf nix-development-enabled { | ||||
|           "nix.enableLanguageServer" = true; | ||||
|           "nix.serverPath" = "nil"; | ||||
|           "[nix]" = { | ||||
|             "editor.defaultFormatter" = "kamadorueda.alejandra"; | ||||
|             "editor.formatOnPaste" = true; | ||||
|             "editor.formatOnSave" = true; | ||||
|             "editor.formatOnType" = true; | ||||
|           }; | ||||
|           "alejandra.program" = "alejandra"; | ||||
|           "nixpkgs" = { | ||||
|             "expr" = "import <nixpkgs> {}"; | ||||
|           }; | ||||
|         }) | ||||
|       ]; | ||||
| 
 | ||||
|       extensions = ( | ||||
|         with 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 | ||||
| 
 | ||||
|             # 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 | ||||
| 
 | ||||
|             # astro blog extensions | ||||
|             astro-build.astro-vscode | ||||
|             unifiedjs.vscode-mdx | ||||
| 
 | ||||
|             # misc extensions | ||||
|             bungcip.better-toml | ||||
|           ] | ||||
|           ++ (lib.lists.optionals nix-development-enabled [ | ||||
|             # nix extensions | ||||
|             pinage404.nix-extension-pack | ||||
|             jnoortheen.nix-ide | ||||
|             kamadorueda.alejandra | ||||
|           ]) | ||||
|           ++ ( | ||||
|             with vscode-marketplace; [ | ||||
|               # js extensions | ||||
|               karyfoundation.nearley | ||||
|             ] | ||||
|           ) | ||||
|       ); | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										3
									
								
								homes/leyla/vscode/user-words.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								homes/leyla/vscode/user-words.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| [ | ||||
|   "leyla" | ||||
| ] | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue