refactor(module): clean up some module inputs
feat(module): add use-lix option to nix module feat(module): update fish config for catppuccin
This commit is contained in:
		
							parent
							
								
									3f767068d2
								
							
						
					
					
						commit
						fde4abd59d
					
				
					 16 changed files with 173 additions and 115 deletions
				
			
		|  | @ -2,32 +2,25 @@ | |||
|   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. | ||||
| 
 | ||||
|   namespace, | ||||
|   config, | ||||
|   ... | ||||
| }: with lib; with lib.${namespace}; | ||||
| let | ||||
|     cfg = config.${namespace}.apps.zed-editor; | ||||
|   cfg = config.${namespace}.apps.zed-editor; | ||||
| 
 | ||||
|     zed-fhs = pkgs.buildFHSUserEnv { | ||||
|         name = "zed"; | ||||
|         targetPkgs = pkgs: | ||||
|         with pkgs; [ | ||||
|             zed-editor | ||||
|         ]; | ||||
|         runScript = "zed"; | ||||
|     }; | ||||
|   zed-fhs = pkgs.buildFHSUserEnv { | ||||
|     name = "zed"; | ||||
|     targetPkgs = pkgs: | ||||
|     with pkgs; [ | ||||
|       zed-editor | ||||
|     ]; | ||||
|     runScript = "zed"; | ||||
|   }; | ||||
| in { | ||||
|     options.${namespace}.apps.zed-editor = { enable = mkEnableOption "zed-editor"; }; | ||||
|   options.${namespace}.apps.zed-editor = { enable = mkEnableOption "zed-editor"; }; | ||||
| 
 | ||||
|     config = mkIf cfg.enable { | ||||
|         home.packages = [zed-fhs]; | ||||
|     }; | ||||
|   config = mkIf cfg.enable { | ||||
|     home.packages = [zed-fhs]; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -2,14 +2,7 @@ | |||
|   lib, | ||||
|   pkgs, | ||||
|   inputs, | ||||
| 
 | ||||
|   namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal". | ||||
|   system, # 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. | ||||
| 
 | ||||
|   namespace, | ||||
|   config, | ||||
|   ... | ||||
| }: let | ||||
|  | @ -45,4 +38,4 @@ in { | |||
|       }; | ||||
|      }; | ||||
|   }; | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -2,5 +2,5 @@ | |||
|   lib, | ||||
|   ... | ||||
| }: { | ||||
|   home.file.".config/fish/themes/Catppuccin\ Frappe.theme".source = lib.snowfall.fs.get-file "resources/apps/fish/Catppuccin\ Frappe.theme"; | ||||
|   home.file.".config/fish/themes/Catppuccin\ Macchiato.theme".source = lib.snowfall.fs.get-file "resources/apps/fish/Catppuccin\ Macchiato.theme"; | ||||
| } | ||||
|  |  | |||
|  | @ -22,4 +22,4 @@ | |||
|     pointerCursor.accent = "blue"; | ||||
|     pointerCursor.flavor = "macchiato"; | ||||
|   }; | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -31,29 +31,19 @@ | |||
|     }; | ||||
| 
 | ||||
|     theme = { | ||||
|       #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"]; | ||||
|       name = "Colloid-Dark-Catppuccin"; | ||||
|       package = pkgs.colloid-gtk-theme.override { | ||||
|         themeVariants = ["default"]; | ||||
|         colorVariants = ["dark"]; | ||||
|         sizeVariants = ["standard"]; | ||||
|         tweaks = ["catppuccin"]; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   dconf.settings = { | ||||
|     "org/gnome/shell/extensions/user-theme" = { | ||||
|       name = "Graphite-teal-Dark-nord"; | ||||
|       name = "Colloid-Dark-Catppuccin"; | ||||
|     }; | ||||
| 
 | ||||
|     "org/gnome/desktop/interface" = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue