pleblee on Nostr: Oh and I autostart it on boot with a systemd unit in my `configuration.nix`: ``` ...
Oh and I autostart it on boot with a systemd unit in my `configuration.nix`:
```
systemd = {
services.ollama-webui = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
Type = "forking";
User = "pleblee";
WorkingDirectory = "/home/blee/apps/open-webui";
Environment = "NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels";
};
script = "${pkgs.nix}/bin/nix-shell";
};
};
```
Published at
2024-07-18 18:18:29Event JSON
{
"id": "5d67ed237531c914b435422d29e898850802a74613e626ab652a91fdf9744402",
"pubkey": "69a0a0910b49a1dbfbc4e4f10df22b5806af5403a228267638f2e908c968228d",
"created_at": 1721326709,
"kind": 1,
"tags": [
[
"e",
"dca15c9046681d8eada8c9cbe65dae1de90b022ce5ffc822cccd5d2ac15c34a4",
"wss://bitcoiner.social/",
"root"
],
[
"e",
"dca15c9046681d8eada8c9cbe65dae1de90b022ce5ffc822cccd5d2ac15c34a4",
"wss://bitcoiner.social/",
"reply"
]
],
"content": "Oh and I autostart it on boot with a systemd unit in my `configuration.nix`: \n\n```\n systemd = {\n services.ollama-webui = {\n wantedBy = [ \"multi-user.target\" ];\n after = [ \"network.target\" ];\n serviceConfig = {\n Type = \"forking\";\n User = \"pleblee\";\n WorkingDirectory = \"/home/blee/apps/open-webui\";\n Environment = \"NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels\";\n };\n script = \"${pkgs.nix}/bin/nix-shell\";\n };\n };\n```",
"sig": "0c29cc37f2d94b7a0b8570cc3d4a7535ab827f36929f8ad38cb3c374e925cfdc1a57dd2c524a8f98dc7b0b22f72e8057d2e6f4688f0758e2fa1899c52de73988"
}