mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-10-31 13:50:04 +00:00 
			
		
		
		
	feat: add zed-editor wrapped in FHS compliant environment
feat: various other tweaks
This commit is contained in:
		
							parent
							
								
									32ab43f7dd
								
							
						
					
					
						commit
						067bc992b6
					
				
					 10 changed files with 99 additions and 54 deletions
				
			
		
							
								
								
									
										35
									
								
								modules/home/apps/development/zed-editor.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								modules/home/apps/development/zed-editor.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   inputs, | ||||
| 
 | ||||
|   namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal". | ||||
|   home, # The home architecture for this host (eg. `x86_64-linux`). | ||||
|   target, # The Snowfall Lib target for this home (eg. `x86_64-home`). | ||||
|   format, # A normalized name for the home target (eg. `home`). | ||||
|   virtual, # A boolean to determine whether this home is a virtual target using nixos-generators. | ||||
|   host, # The host name for this home. | ||||
| 
 | ||||
|   config, | ||||
|   ... | ||||
| }: with lib; with lib.${namespace}; | ||||
| let | ||||
|     cfg = config.${namespace}.apps.zed-editor; | ||||
| 
 | ||||
|     zed-fhs = pkgs.buildFHSUserEnv { | ||||
|         name = "zed"; | ||||
|         targetPkgs = pkgs: | ||||
|         with pkgs; [ | ||||
|             zed-editor | ||||
|         ]; | ||||
|         runScript = "zed"; | ||||
|     }; | ||||
| in { | ||||
|     options.${namespace}.apps.zed-editor = { enable = mkEnableOption "zed-editor"; }; | ||||
| 
 | ||||
|     home.packages = [zed-fhs]; | ||||
| 
 | ||||
|     config = mkIf cfg.enable { | ||||
|         home.packages = [zed-fhs]; | ||||
|     }; | ||||
| } | ||||
|  | @ -26,34 +26,39 @@ | |||
|       icon = { | ||||
|         enable = true; | ||||
|         accent = "blue"; | ||||
|         flavor = "frappe"; | ||||
|         flavor = "macchiato"; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     theme = { | ||||
|       name = "Colloid-Dark-Catppuccin"; | ||||
|       package = pkgs.colloid-gtk-theme.override { | ||||
|         themeVariants = ["default"]; | ||||
|         colorVariants = ["dark"]; | ||||
|         sizeVariants = ["standard"]; | ||||
|         tweaks = ["catppuccin"]; | ||||
|       #name = "Colloid-Dark-Catppuccin"; | ||||
|       #package = pkgs.colloid-gtk-theme.override { | ||||
|         #themeVariants = ["default"]; | ||||
|         #colorVariants = ["dark"]; | ||||
|         #sizeVariants = ["standard"]; | ||||
|         #tweaks = ["catppuccin"]; | ||||
|       #}; | ||||
| 
 | ||||
|       name = "Graphite-teal-Dark-nord"; | ||||
|       package = pkgs.graphite-gtk-theme.override { | ||||
|           themeVariants = ["blue" "teal"]; | ||||
|           colorVariants = ["dark"]; | ||||
|           sizeVariants = ["standard"]; | ||||
|           tweaks = ["nord"]; | ||||
|           withGrub = true; | ||||
|           grubScreens = ["1080p"]; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   dconf.settings = { | ||||
|     "org/gnome/desktop/background" = { | ||||
|       picture-uri = lib.snowfall.fs.get-file "resources/wallpapers/pond_sidewalk_dusk.jpg"; | ||||
|       picture-uri-dark = lib.snowfall.fs.get-file "resources/wallpapers/pond_sidewalk_dusk.jpg"; | ||||
|     }; | ||||
| 
 | ||||
|     "org/gnome/shell/extensions/user-theme" = { | ||||
|       name = "Colloid-Dark-Catppuccin"; | ||||
|       name = "Graphite-teal-Dark-nord"; | ||||
|     }; | ||||
| 
 | ||||
|     "org/gnome/desktop/interface" = { | ||||
|       color-scheme = "prefer-dark"; | ||||
|       cursor-theme = "catppuccin-frappe-blue-cursors"; | ||||
|       cursor-theme = "catppuccin-macchiato-blue-cursors"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -25,21 +25,23 @@ in { | |||
|     services.xserver.displayManager.gdm.enable = true; | ||||
|     services.xserver.desktopManager.gnome.enable = true; | ||||
| 
 | ||||
|     environment.gnome.excludePackages =  (with pkgs; [ | ||||
|     environment.gnome.excludePackages = with pkgs; [ | ||||
|       gnome-tour | ||||
|       gedit | ||||
|       cheese | ||||
|       geary | ||||
|       yelp # Help view | ||||
|       epiphany # Gnome web | ||||
|     ]) ++ (with pkgs.gnome; [ | ||||
|       gnome-console | ||||
|       gnome-terminal | ||||
|       gnome-music | ||||
|       tali # Poker game | ||||
|       iagno # Go game | ||||
|       hitori # Sudoku game | ||||
|       gnome-contacts | ||||
|       gnome-initial-setup | ||||
|     ]); | ||||
|       gnome-system-monitor | ||||
|     ]; | ||||
| 
 | ||||
|     programs.dconf.enable = true; | ||||
| 
 | ||||
|  | @ -52,6 +54,8 @@ in { | |||
| 
 | ||||
|     environment.systemPackages = with pkgs; [ | ||||
|       gnome-tweaks | ||||
|       blackbox-terminal # Terminal app | ||||
|       resources # System resource manager | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue