mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-10-31 13:50:04 +00:00 
			
		
		
		
	✨ Add user activation script, which removes home manager backup files
This commit is contained in:
		
							parent
							
								
									01b1273012
								
							
						
					
					
						commit
						6dc0e02a92
					
				
					 2 changed files with 14 additions and 14 deletions
				
			
		|  | @ -1,14 +0,0 @@ | ||||||
| { |  | ||||||
|   lib, |  | ||||||
|   pkgs, |  | ||||||
|   config, |  | ||||||
|   namespace, |  | ||||||
|   ... |  | ||||||
| }: let |  | ||||||
|   inherit (lib) mkOption mkIf; |  | ||||||
|   palette = (pkgs.lib.importJSON (config.catppuccin.sources.palette + "/palette.json")).${config.catppuccin.flavor}.colors; |  | ||||||
| in { |  | ||||||
|   options.${namespace}.themes.catppuccin.palette = mkOption {type = lib.types.attrsOf lib.types.raw;}; |  | ||||||
| 
 |  | ||||||
|   config.${namespace}.themes.catppuccin.palette = mkIf config.${namespace}.themes.catppuccin.enable palette; |  | ||||||
| } |  | ||||||
							
								
								
									
										14
									
								
								modules/nixos/services/home-manager/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modules/nixos/services/home-manager/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | ||||||
|  | {...}: { | ||||||
|  |   # Todo: rewrite as recursive operation, based on ${namespace}.users | ||||||
|  |   system.userActivationScripts = { | ||||||
|  |     removeConflictingHomeManagerBackups = { | ||||||
|  |       text = '' | ||||||
|  |         rm -f /home/jo/.gtkrc-2.0.homeManagerBackupFileExtension | ||||||
|  |         rm -f /home/jo/.config/gtk-3.0/gtk.css.homeManagerBackupFileExtension | ||||||
|  |         rm -f /home/jo/.config/gtk-4.0/gtk.css.homeManagerBackupFileExtension | ||||||
|  |       ''; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   home-manager.backupFileExtension = "homeManagerBackupFileExtension"; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue