Move fs.target to filesystems.nix
This commit is contained in:
		
							parent
							
								
									7ce9893bef
								
							
						
					
					
						commit
						b968244aa1
					
				@ -158,13 +158,6 @@ let
 | 
			
		||||
      KillSignal=SIGHUP
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
  fsTarget =
 | 
			
		||||
    ''
 | 
			
		||||
      [Unit]
 | 
			
		||||
      Description=All File Systems
 | 
			
		||||
      Wants=local-fs.target remote-fs.target
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
  makeJobScript = name: content: "${pkgs.writeScriptBin name content}/bin/${name}";
 | 
			
		||||
 | 
			
		||||
  unitConfig = { name, config, ... }: {
 | 
			
		||||
@ -423,7 +416,6 @@ in
 | 
			
		||||
 | 
			
		||||
    boot.systemd.units =
 | 
			
		||||
      { "rescue.service".text = rescueService; }
 | 
			
		||||
      // { "fs.target" = { text = fsTarget; wantedBy = [ "multi-user.target" ]; }; }
 | 
			
		||||
      // mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets
 | 
			
		||||
      // mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.services
 | 
			
		||||
      // mapAttrs' (n: v: nameValuePair "${n}.socket" (socketToUnit n v)) cfg.sockets;
 | 
			
		||||
 | 
			
		||||
@ -180,6 +180,12 @@ in
 | 
			
		||||
        target = "fstab";
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
    # Provide a target that pulls in all filesystems.
 | 
			
		||||
    boot.systemd.targets.fs =
 | 
			
		||||
      { description = "All File Systems";
 | 
			
		||||
        wants = [ "local-fs.target" "remote-fs.target" ];
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
    /*
 | 
			
		||||
    jobs.mountall =
 | 
			
		||||
      { startOn = "started udev or config-changed";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user