who the fuck knows how i fucked up nvim that bad
This commit is contained in:
		
							parent
							
								
									38ded2454c
								
							
						
					
					
						commit
						fc1586165a
					
				
							
								
								
									
										84
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										84
									
								
								flake.nix
									
									
									
									
									
								
							|  | @ -1,52 +1,52 @@ | ||||||
| { self, config, lib, pkgs, ... }: |  | ||||||
| let inherit (lib) fileContents; |  | ||||||
| in |  | ||||||
| { | { | ||||||
|   imports = [ ../../users/anish ]; |   description = "Your new nix config"; | ||||||
| 
 | 
 | ||||||
|  |   inputs = { | ||||||
|  |     # Nixpkgs | ||||||
|  |     nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11"; | ||||||
|  |     unstable.url = "github:nixos/nixpkgs/nixos-unstable"; | ||||||
| 
 | 
 | ||||||
|   fonts = { |     # Home manager | ||||||
|     fonts = with pkgs; [ powerline-fonts dejavu_fonts ]; |     home-manager.url = "github:nix-community/home-manager"; | ||||||
|     fontconfig.defaultFonts = { |     home-manager.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|       monospace = [ "DejaVu Sans Mono for Powerline" ]; |     hardware.url = "github:nixos/nixos-hardware"; | ||||||
|       sansSerif = [ "DejaVu Sans" ]; | 
 | ||||||
|  |     # Tools | ||||||
|  |     agenix.url = "github:ryantm/agenix"; | ||||||
|  |     agenix.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|  |     deploy-rs.url = "github:serokell/deploy-rs"; | ||||||
|  |     deploy-rs.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|  | 
 | ||||||
|  |     # Packages | ||||||
|  |     poonam.url = "git+ssh://gitea@git.sealight.xyz/aynish/kitaab?ref=main"; | ||||||
|  |     basant.url = "git+ssh://gitea@git.sealight.xyz/aynish/basant?ref=main"; | ||||||
|  |     basant.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|  |     basant.inputs.poonam.follows = "poonam"; | ||||||
|  |     grasp.url = "git+ssh://gitea@git.sealight.xyz/aynish/grasp.git?ref=main"; | ||||||
|  |     grasp.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|  |     # Others | ||||||
|  |     nur.url = "github:nix-community/NUR"; | ||||||
|  |     rust-overlay = { | ||||||
|  |       url = "github:oxalica/rust-overlay"; | ||||||
|  |       inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|     }; |     }; | ||||||
|   }; |     eww = { | ||||||
| 
 |       url = "github:elkowar/eww"; | ||||||
|   nix = { |       inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|     settings = { |       inputs.rust-overlay.follows = "rust-overlay"; | ||||||
|       sandbox = true; |  | ||||||
|       trusted-users = [ "root" "@wheel" ]; |  | ||||||
|       allowed-users = [ "@wheel" ]; |  | ||||||
|       auto-optimise-store = true; |  | ||||||
|       system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; |  | ||||||
|     }; |     }; | ||||||
|     gc.automatic = true; |     tidalcycles.url = "github:mitchmindtree/tidalcycles.nix"; | ||||||
|     optimise.automatic = true; |     tidalcycles.inputs.nixpkgs.follows = "unstable"; | ||||||
|     extraOptions = '' |     # TODO hundred rabbits software | ||||||
|       min-free = 536870912 |     # TODO needs secrets | ||||||
|       keep-outputs = true |     # dhyan.url = "git+ssh://gitea@git.sealight.xyz/aynish/dhyan?ref=main"; | ||||||
|       keep-derivations = true |     # dhyan.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|       fallback = true |     # TODO needs secrets | ||||||
|     ''; |     # muneem.url = "git+ssh://gitea@git.sealight.xyz/aynish/muneem?ref=main"; | ||||||
|  |     # muneem.inputs.nixpkgs.follows = "nixpkgs"; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   environment.systemPackages = with pkgs; [ |   outputs = | ||||||
|     pinentry_gnome |  | ||||||
|     cached-nix-shell |  | ||||||
|   ]; |  | ||||||
| 
 |  | ||||||
|   # For rage encryption, all hosts need a ssh key pair |  | ||||||
|   services.openssh = { |  | ||||||
|     enable = true; |  | ||||||
|     openFirewall = lib.mkDefault false; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   # programs.gnupg.agent.enable = true; |  | ||||||
|   # programs.gnupg.agent.pinentryFlavor = "curses"; |  | ||||||
| 
 |  | ||||||
|   services.earlyoom.enable = true; |  | ||||||
| } |  | ||||||
|     { self |     { self | ||||||
|     , nixpkgs |     , nixpkgs | ||||||
|     , unstable |     , unstable | ||||||
|  |  | ||||||
|  | @ -144,6 +144,8 @@ let | ||||||
|     pynvim |     pynvim | ||||||
|     six |     six | ||||||
|     pylsp-mypy |     pylsp-mypy | ||||||
|  |     #pyls-isort | ||||||
|  |     #pyls-black | ||||||
|     black |     black | ||||||
|     isort |     isort | ||||||
|     # other python packages you want |     # other python packages you want | ||||||
|  | @ -537,17 +539,18 @@ in | ||||||
|       require("luasnip.loaders.from_vscode").lazy_load() |       require("luasnip.loaders.from_vscode").lazy_load() | ||||||
| 
 | 
 | ||||||
|       -- null-ls |       -- null-ls | ||||||
|       local null_ls = require("null-ls") |       -- being very janky | ||||||
|       null_ls.setup({ |       -- local null_ls = require("null-ls") | ||||||
|         sources = { |       -- null_ls.setup({ | ||||||
|           null_ls.builtins.code_actions.statix, |       --   sources = { | ||||||
|           null_ls.builtins.diagnostics.shellcheck, |       --     null_ls.builtins.code_actions.statix, | ||||||
|           -- null_ls.builtins.diagnostics.clj_kondo, |       --     null_ls.builtins.diagnostics.shellcheck, | ||||||
|           null_ls.builtins.formatting.isort, |       --     -- null_ls.builtins.diagnostics.clj_kondo, | ||||||
|           null_ls.builtins.formatting.black, |       --     null_ls.builtins.formatting.isort, | ||||||
|           null_ls.builtins.code_actions.proselint, |       --     null_ls.builtins.formatting.black, | ||||||
|         }, |       --     null_ls.builtins.code_actions.proselint, | ||||||
|       }) |       --   }, | ||||||
|  |       -- }) | ||||||
| 
 | 
 | ||||||
|       -- Setup lspconfig |       -- Setup lspconfig | ||||||
|       require("lsp-format").setup {} |       require("lsp-format").setup {} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue