my nixos flake :3 (git.koi.rip mirror) git.koi.rip/koi/flake
nixos catppuccin linux dotfiles neovim
0

Configure Feed

Select the types of activity you want to include in your feed.

vita-presence: init

june (Jun 21, 2026, 8:57 PM +0200) 3ed30bc9 65612c17

+108 -4
+1 -1
external/zsh/profile.zsh
··· 1 1 if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then 2 - systemctl --user start jellyfin-rpc.service & 2 + systemctl --user start user-desktop.target & 3 3 exec niri-session 4 4 fi 5 5
+3
home/modules/programs/default.nix
··· 14 14 ./meowtd.nix 15 15 ./cuteff.nix 16 16 ./jujutsu.nix 17 + 18 + ./user-desktop.nix 17 19 ./jellyfin-rpc.nix 20 + ./vita-presence.nix 18 21 19 22 ./awww.nix 20 23 ./rofi.nix
+1 -1
home/modules/programs/jellyfin-rpc.nix
··· 16 16 RestartSec = 60; 17 17 }; 18 18 19 - # started manually with desktop session 19 + # started by user-desktop.target 20 20 # Install.WantedBy = [ "default.target" ]; 21 21 }; 22 22 }
+11
home/modules/programs/user-desktop.nix
··· 1 + { 2 + systemd.user.targets.user-desktop = { 3 + Unit = { 4 + Description = "started with desktop session"; 5 + Wants = [ 6 + "jellyfin-rpc.service" 7 + "vita-presence.service" 8 + ]; 9 + }; 10 + }; 11 + }
+56
home/modules/programs/vita-presence-package.nix
··· 1 + { 2 + lib, 3 + cmake, 4 + llvmPackages_18, 5 + rapidjson, 6 + fetchFromGitHub, 7 + }: 8 + let 9 + inherit (llvmPackages_18) stdenv; 10 + in 11 + stdenv.mkDerivation { 12 + pname = "vita-presence"; 13 + version = "0-unstable-2022-07-10"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "TheMightyV"; 17 + repo = "vita-presence-the-server"; 18 + rev = "b41266f661846d3325aca902c430989bffd0f599"; 19 + hash = "sha256-qePJpRxtlZadzEVjcYb1Hbk/jr0hvnNSqBzg7C111Fo="; 20 + fetchSubmodules = true; 21 + }; 22 + 23 + nativeBuildInputs = [ cmake ]; 24 + buildInputs = [ rapidjson ]; 25 + 26 + cmakeFlags = [ "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" ]; 27 + 28 + postPatch = '' 29 + # fix invalid clang-format config errors 30 + rm lib/discord-rpc/.clang-format 31 + 32 + # disable output 33 + substituteInPlace src/main.cpp \ 34 + --replace-fail \ 35 + 'console_clear_screen();' \ 36 + 'break;' 37 + ''; 38 + 39 + installPhase = '' 40 + runHook preInstall 41 + 42 + mkdir -p $out/bin 43 + cp vita-presence-the-server $out/bin/ 44 + 45 + runHook postInstall 46 + ''; 47 + 48 + meta = { 49 + description = "VitaPresence server implementation"; 50 + homepage = "https://github.com/TheMightyV/vita-presence-the-server"; 51 + license = lib.licenses.gpl3Plus; 52 + maintainers = [ lib.maintainers.koi ]; 53 + platforms = lib.platforms.linux; 54 + mainProgram = "vita-presence-the-server"; 55 + }; 56 + }
+33
home/modules/programs/vita-presence.nix
··· 1 + { pkgs, ... }: 2 + let 3 + name = "vita-presence-the-server"; 4 + package = pkgs.callPackage ./vita-presence-package.nix { }; 5 + config = pkgs.runCommand "vita-presence-config" {} '' 6 + mkdir -p $out 7 + cat > $out/${name}.ini <<'EOF' 8 + [General] 9 + appID = 1509590848625578226 10 + vitaIP = 192.168.55.180 11 + updateTimer = 5000 12 + vitaTimeout = 5000 13 + EOF 14 + ''; 15 + in 16 + { 17 + systemd.user.services.vita-presence = { 18 + Unit = { 19 + Description = "VitaPresence server"; 20 + After = [ "network.target" ]; 21 + }; 22 + 23 + Service = { 24 + WorkingDirectory = config; 25 + ExecStart = "${package}/bin/${name}"; 26 + Restart = "on-failure"; 27 + RestartSec = 120; 28 + }; 29 + 30 + # started by user-desktop.target 31 + # Install.WantedBy = [ "default.target" ]; 32 + }; 33 + }
+3 -2
modules/desktop/services/meowtd.nix
··· 3 3 imports = [ inputs.meowtd.nixosModules.default ]; 4 4 services.meowtd = { 5 5 enable = true; 6 - authorizedKeys = config.users.users.robin.openssh.authorizedKeys.keys ++ 7 - config.users.users.koi.openssh.authorizedKeys.keys; 6 + authorizedKeys = 7 + config.users.users.robin.openssh.authorizedKeys.keys 8 + ++ config.users.users.koi.openssh.authorizedKeys.keys; 8 9 }; 9 10 }