fix(local-dev): no yeswikidev service

This commit is contained in:
Florian Schmitt 2025-02-03 10:37:51 +03:00
parent a8687e89f1
commit b63400e00b

View file

@ -1,8 +1,6 @@
# Local developpement
{
pkgs,
config,
lib,
...
}:
{
@ -17,23 +15,23 @@
#waydroid.enable = true
};
#programs.virt-manager.enable = true;
systemd.services.yeswikidev = {
enable = true;
script = ''
${pkgs.systemd}/bin/systemctl start mysql
# etc
'';
serviceConfig =
let
startstop =
command:
(pkgs.writeShellApplication {
name = "yeswikidev";
runtimeInputs = with pkgs; [ systemd ];
text = ''
systemctl ${command} mysql.service
'';
});
#systemd.services.yeswikidev = {
# enable = true;
# script = ''
# ${pkgs.systemd}/bin/systemctl start mysql
# # etc
# '';
# serviceConfig =
# let
# startstop =
# command:
# (pkgs.writeShellApplication {
# name = "yeswikidev";
# runtimeInputs = with pkgs; [ systemd ];
# text = ''
# systemctl ${command} mysql.service
# '';
# });
#startstopFullShell = pkgs.writeShellApplication {
# name = "yeswikidev";
# runtimeInputs = with pkgs; [ systemd ];
@ -50,7 +48,7 @@
# '';
#})) commands;
in
# in
#execs = {
# ExecStart = "start";
# ExecStop = "stop";
@ -59,7 +57,7 @@
# https://nixos.org/manual/nix/stable/language/builtins#builtins-mapAttrs
#execAttrs = attrNames execs; # ["Start" "Stop"];
#execs2 = mapAttrs (k: v: ()) execs;
{
# {
# pkgs.writeScript, pkgs.writeScriptBin
#ExecStart = startstop "start";
#ExecStop = startstop "stop";
@ -69,8 +67,8 @@
# OR
# ExecStart = "${scripts[0]}";
# ExecStop = "${scripts[1]}";
};
};
# };
#};
services.mysql = {
enable = true;