diff --git a/machines/lamabus/configuration.nix b/machines/lamabus/configuration.nix index 2884e31..a00f453 100644 --- a/machines/lamabus/configuration.nix +++ b/machines/lamabus/configuration.nix @@ -129,14 +129,20 @@ in { ]; - systemd.services.carla = { - wantedBy = [ "jack.service" ]; + systemd.user.services.carla = { + wantedBy = [ "default.target" "graphical-session.target" ]; + environment.DISPLAY = ":0"; + environment.WAYLAND_DISPLAY = "wayland-0"; + environment.DEBUS_SESSION_BUS_ADDRESS = "unix:path=/run/user/1000/bus"; + environment.QT_QPA_PLATFORM = "wayland"; + environment.XDG_RUNTIME_DIR = "/run/user/1000"; after = [ "jack.service" ]; serviceConfig = { - User = "lasse"; - Type = "oneshot"; + # User = "lasse"; + Type = "exec"; + #WorkingDirectory = "/home/lasse"; ExecStart = '' - ${pkgs.carla}/bin/carla + ${pkgs.carla}/bin/carla ~/.carla/default.carxp ''; }; }; diff --git a/machines/lamaoutpost/configuration.nix b/machines/lamaoutpost/configuration.nix index e718eae..ae1a333 100644 --- a/machines/lamaoutpost/configuration.nix +++ b/machines/lamaoutpost/configuration.nix @@ -85,6 +85,8 @@ wget ]; + boot.initrd.systemd.enableTpm2 = false; + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; system.stateVersion = "22.05";