From 2368a1b6a6c1ae4bba570bd5b923b821041137e3 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 13 May 2023 22:49:47 +1000 Subject: [PATCH] use latest microbin for all the features --- modules/nixos/microbin.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/nixos/microbin.nix b/modules/nixos/microbin.nix index 2244071f..4567256a 100644 --- a/modules/nixos/microbin.nix +++ b/modules/nixos/microbin.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ self, config, lib, pkgs, ... }: with lib; @@ -45,7 +45,14 @@ in after = [ "remote-fs.target" "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { - ExecStart = "${pkgs.microbin}/bin/microbin -- --port ${builtins.toString cfg.port} --public-path ${cfg.hostname} --editable --enable-burn-after --private --qr --title=sealight --highlightsyntax"; + ExecStart = "${pkgs.unstable.microbin}/bin/microbin --public-path ${cfg.hostname} --qr --enable-burn-after --private"; + Environment = [ + "MICROBIN_EDITABLE=true" + "MICROBIN_HIDE_FOOTER=true" + "MICROBIN_HIGHLIGHTSYNTAX=true" + "MICROBIN_PORT=${builtins.toString cfg.port}" + "MICROBIN_TITLE=SealightBin" + ]; WorkingDirectory = dataFolder; TimeoutStopSec = " 20 "; KillMode = " process ";