daemon tests for gotosocial

This commit is contained in:
Qyriad 2026-03-25 19:12:45 +01:00
parent 7f4a5a35ca
commit ccd37ee169
7 changed files with 201 additions and 129 deletions

View file

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: EUPL-1.1
{ pkgs, lib, modulesPath, ... }:
{ pkgs, lib, modulesPath, config, ... }:
let
moduleList = import (modulesPath + "/module-list.nix");
@ -64,9 +64,20 @@ in
"NIXOS_CONFIG" = "/etc/nixos/configuration.nix";
};
#systemd.services.dynix-daemon = {
#
#};
systemd.services.dynix-daemon = {
enable = true;
path = [ config.nix.package ];
serviceConfig = {
Environment = [
"RUST_LOG=trace"
];
ExecSearchPath = [ "/run/current-system/sw/bin" ];
SuccessExitStatus = [ "0" "2" ];
# `bash -l` so XDG_RUNTIME_DIR is set correctly. lol.
ExecStart = "bash -l -c 'exec /root/.nix-profile/bin/dynix daemon --color=always'";
SyslogIdentifier = "dynix-daemon";
};
};
environment.shellAliases = {
ls = "eza --long --header --group --group-directories-first --classify --binary";
@ -78,5 +89,6 @@ in
ripgrep
netcat.nc
socat
python3
];
}