Customize the secondary free space indicator
This commit is contained in:
		
							parent
							
								
									2781064e61
								
							
						
					
					
						commit
						176c0569b8
					
				@ -6,6 +6,7 @@
 | 
				
			|||||||
    name = "DanixDesktop";
 | 
					    name = "DanixDesktop";
 | 
				
			||||||
    eth = "eno1";
 | 
					    eth = "eno1";
 | 
				
			||||||
    wlan = null;
 | 
					    wlan = null;
 | 
				
			||||||
 | 
					    secondary-fs = "/mnt/henning";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  profiles.base.enable = true;
 | 
					  profiles.base.enable = true;
 | 
				
			||||||
  profiles.xsession.enable = true;
 | 
					  profiles.xsession.enable = true;
 | 
				
			||||||
 | 
				
			|||||||
@ -6,10 +6,14 @@ in {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  options.machine = {
 | 
					  options.machine = {
 | 
				
			||||||
    name = lib.mkOption {
 | 
					    name = lib.mkOption {
 | 
				
			||||||
      type = "str";
 | 
					      type = lib.types.str;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    eth = lib.mkOption {};
 | 
					    eth = lib.mkOption {};
 | 
				
			||||||
    wlan = lib.mkOption {};
 | 
					    wlan = lib.mkOption {};
 | 
				
			||||||
 | 
					    secondary-fs = lib.mkOption {
 | 
				
			||||||
 | 
					      type = lib.types.str;
 | 
				
			||||||
 | 
					      default = "$HOME";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  options.profiles.base = {
 | 
					  options.profiles.base = {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								profiles/xsession/.polybar.nix.swp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								profiles/xsession/.polybar.nix.swp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@ -115,7 +115,7 @@ in
 | 
				
			|||||||
          interval = 25;
 | 
					          interval = 25;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          mount-0 = "/";
 | 
					          mount-0 = "/";
 | 
				
			||||||
          mount-1 = "/mnt/henning";
 | 
					          mount-1 = config.machine.secondary-fs;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          label-mounted = "%{F#0a81f5}%mountpoint%%{F-}: %free%";
 | 
					          label-mounted = "%{F#0a81f5}%mountpoint%%{F-}: %free%";
 | 
				
			||||||
          label-unmounted = "%mountpoint% not mounted";
 | 
					          label-unmounted = "%mountpoint% not mounted";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user