flake: remove specialisations
This commit is contained in:
		
							parent
							
								
									fea1f63b5d
								
							
						
					
					
						commit
						3e6b7853b9
					
				
					 2 changed files with 0 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -1,21 +0,0 @@
 | 
			
		|||
{ pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  specialisation.dark-theme.configuration = {
 | 
			
		||||
    nixpkgs.overlays = [ (final: prev: { uservars = prev.uservars; }) ];
 | 
			
		||||
  };
 | 
			
		||||
  specialisation.light-theme.configuration = {
 | 
			
		||||
    nixpkgs.overlays = [
 | 
			
		||||
      (final: prev: {
 | 
			
		||||
        uservars = prev.uservars // rec {
 | 
			
		||||
          theme = prev.uservars.themes.light;
 | 
			
		||||
          color = theme.color;
 | 
			
		||||
        };
 | 
			
		||||
      })
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
  environment.systemPackages = [
 | 
			
		||||
    (pkgs.writeShellScriptBin "theme" ''
 | 
			
		||||
      sudo "/nix/var/nix/profiles/system/specialisation/$1-theme/bin/switch-to-configuration" test
 | 
			
		||||
    '')
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue