fix(local-dev): no yeswikidev service
This commit is contained in:
parent
a8687e89f1
commit
b63400e00b
1 changed files with 53 additions and 55 deletions
|
@ -1,8 +1,6 @@
|
||||||
# Local developpement
|
# Local developpement
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -17,23 +15,23 @@
|
||||||
#waydroid.enable = true
|
#waydroid.enable = true
|
||||||
};
|
};
|
||||||
#programs.virt-manager.enable = true;
|
#programs.virt-manager.enable = true;
|
||||||
systemd.services.yeswikidev = {
|
#systemd.services.yeswikidev = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
script = ''
|
# script = ''
|
||||||
${pkgs.systemd}/bin/systemctl start mysql
|
# ${pkgs.systemd}/bin/systemctl start mysql
|
||||||
# etc
|
# # etc
|
||||||
'';
|
# '';
|
||||||
serviceConfig =
|
# serviceConfig =
|
||||||
let
|
# let
|
||||||
startstop =
|
# startstop =
|
||||||
command:
|
# command:
|
||||||
(pkgs.writeShellApplication {
|
# (pkgs.writeShellApplication {
|
||||||
name = "yeswikidev";
|
# name = "yeswikidev";
|
||||||
runtimeInputs = with pkgs; [ systemd ];
|
# runtimeInputs = with pkgs; [ systemd ];
|
||||||
text = ''
|
# text = ''
|
||||||
systemctl ${command} mysql.service
|
# systemctl ${command} mysql.service
|
||||||
'';
|
# '';
|
||||||
});
|
# });
|
||||||
#startstopFullShell = pkgs.writeShellApplication {
|
#startstopFullShell = pkgs.writeShellApplication {
|
||||||
# name = "yeswikidev";
|
# name = "yeswikidev";
|
||||||
# runtimeInputs = with pkgs; [ systemd ];
|
# runtimeInputs = with pkgs; [ systemd ];
|
||||||
|
@ -50,7 +48,7 @@
|
||||||
# '';
|
# '';
|
||||||
#})) commands;
|
#})) commands;
|
||||||
|
|
||||||
in
|
# in
|
||||||
#execs = {
|
#execs = {
|
||||||
# ExecStart = "start";
|
# ExecStart = "start";
|
||||||
# ExecStop = "stop";
|
# ExecStop = "stop";
|
||||||
|
@ -59,7 +57,7 @@
|
||||||
# https://nixos.org/manual/nix/stable/language/builtins#builtins-mapAttrs
|
# https://nixos.org/manual/nix/stable/language/builtins#builtins-mapAttrs
|
||||||
#execAttrs = attrNames execs; # ["Start" "Stop"];
|
#execAttrs = attrNames execs; # ["Start" "Stop"];
|
||||||
#execs2 = mapAttrs (k: v: ()) execs;
|
#execs2 = mapAttrs (k: v: ()) execs;
|
||||||
{
|
# {
|
||||||
# pkgs.writeScript, pkgs.writeScriptBin
|
# pkgs.writeScript, pkgs.writeScriptBin
|
||||||
#ExecStart = startstop "start";
|
#ExecStart = startstop "start";
|
||||||
#ExecStop = startstop "stop";
|
#ExecStop = startstop "stop";
|
||||||
|
@ -69,8 +67,8 @@
|
||||||
# OR
|
# OR
|
||||||
# ExecStart = "${scripts[0]}";
|
# ExecStart = "${scripts[0]}";
|
||||||
# ExecStop = "${scripts[1]}";
|
# ExecStop = "${scripts[1]}";
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
|
|
||||||
services.mysql = {
|
services.mysql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue