From 60d536b70ce807232ccc8536f53379bd8ddb19aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20G=C3=B6tte?= Date: Tue, 8 Oct 2024 12:00:47 +0200 Subject: [PATCH] fix pi tbm module --- machines/lamabus/configuration.nix | 16 +++++++++++----- machines/lamaoutpost/configuration.nix | 2 ++ 2 files changed, 13 insertions(+), 5 deletions(-) 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";