murex: update
This commit is contained in:
		
							parent
							
								
									35651f0070
								
							
						
					
					
						commit
						557620b462
					
				
							
								
								
									
										33
									
								
								murex.nix
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										33
									
								
								murex.nix
									
									
									
									
									
								
							@ -42,10 +42,6 @@
 | 
			
		||||
  networking.wireless.iwd.enable = true;
 | 
			
		||||
 | 
			
		||||
  fileSystems = {
 | 
			
		||||
    # "/boot" = {
 | 
			
		||||
    #   device = "/dev/disk/by-label/NIXOS_BOOT";
 | 
			
		||||
    #   fsType = "vfat";
 | 
			
		||||
    # };
 | 
			
		||||
    "/" = {
 | 
			
		||||
      device = "/dev/disk/by-label/NIXOS_SD";
 | 
			
		||||
      fsType = "ext4";
 | 
			
		||||
@ -65,7 +61,6 @@
 | 
			
		||||
    isNormalUser = true;
 | 
			
		||||
    extraGroups = [ "wheel" "networkmanager" "audio" "dialout" ];
 | 
			
		||||
    shell = pkgs.fish;
 | 
			
		||||
    # password = if config.virtualisation != null then "" else null;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.openssh = {
 | 
			
		||||
@ -79,19 +74,19 @@
 | 
			
		||||
    enable = true;
 | 
			
		||||
    plugins = ps: with ps; [ printtimegenius touchui psucontrol ];
 | 
			
		||||
  };
 | 
			
		||||
  systemd.services.setupGpioForRelais = rec {
 | 
			
		||||
    wantedBy = [ "octoprint.service" ];
 | 
			
		||||
    serviceConfig = {
 | 
			
		||||
      Type = "oneshot";
 | 
			
		||||
      RemainAfterExit = "yes";
 | 
			
		||||
    };
 | 
			
		||||
    script = let gpio = toString (458 + 17); in ''
 | 
			
		||||
      if echo ${gpio} > /sys/class/gpio/export; then
 | 
			
		||||
        echo high > /sys/class/gpio/gpio${gpio}/direction
 | 
			
		||||
      fi
 | 
			
		||||
      chown octoprint:dialout /sys/class/gpio/gpio${gpio}/value
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
  # systemd.services.setupGpioForRelais = rec {
 | 
			
		||||
  #   wantedBy = [ "octoprint.service" ];
 | 
			
		||||
  #   serviceConfig = {
 | 
			
		||||
  #     Type = "oneshot";
 | 
			
		||||
  #     RemainAfterExit = "yes";
 | 
			
		||||
  #   };
 | 
			
		||||
  #   script = let gpio = toString (458 + 17); in ''
 | 
			
		||||
  #     if echo ${gpio} > /sys/class/gpio/export; then
 | 
			
		||||
  #       echo high > /sys/class/gpio/gpio${gpio}/direction
 | 
			
		||||
  #     fi
 | 
			
		||||
  #     chown octoprint:dialout /sys/class/gpio/gpio${gpio}/value
 | 
			
		||||
  #   '';
 | 
			
		||||
  # };
 | 
			
		||||
  users.users.${config.services.octoprint.user}.extraGroups = [
 | 
			
		||||
    "dialout" # ttyUSB access
 | 
			
		||||
  ];
 | 
			
		||||
@ -143,5 +138,5 @@
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  system.stateVersion = "19.03";
 | 
			
		||||
  system.stateVersion = "20.09";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user