murex: update

This commit is contained in:
Gabriel Ebner 2020-10-03 20:19:14 +02:00
parent 35651f0070
commit 557620b462

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