Verified Commit 232c0228 authored by GovanifY's avatar GovanifY
Browse files

linux: drop unneeded patches

components/monitor: add needed fields for email alerts
parent 0889b7a8
......@@ -94,7 +94,7 @@ in
)
];
boot.kernelPatches = [
boot.kernelPatches = mkIf (cfg.verbose) [
{
name = "silent-boot";
patch = null;
......
......@@ -303,6 +303,10 @@ in
listenAddress = "localhost";
configuration = {
route.receiver = "email";
global = {
smtp_smarthost = "localhost:25";
smtp_from = "alertmanager@${cfg.domain}";
};
receivers = [
{
name = "email";
......
......@@ -6,19 +6,19 @@ let
git_paths_bringup = concatStrings (
mapAttrsToList
(name: attr: optionalString (attr.git.user != null) ''
if [[ ! -d "/home/${attr.git.user}/${name}.git/" ]]
then
${pkgs.git}/bin/git init /home/${attr.git.user}/${name}.git/
${pkgs.git}/bin/git clone -l /home/${attr.git.user}/${name}.git/ /var/www/${name}
cat <<'EOF' >> /home/${attr.git.user}/${name}.git/hooks/post-receive
#!/bin/sh
GIT_WORK_TREE=/home/${attr.git.user}/${name}.git/ ${pkgs.git}/bin/git checkout -f
EOF
chmod +x /home/${attr.git.user}/${name}.git/hooks/post-receive
chown ${attr.git.user}:users -R /home/${attr.git.user}/${name}.git/
chown ${attr.git.user}:users -R /var/www/${name}
chmod a+r /var/www/${name}
fi
if [[ ! -d "/home/${attr.git.user}/${name}.git/" ]]
then
${pkgs.git}/bin/git init /home/${attr.git.user}/${name}.git/
${pkgs.git}/bin/git clone -l /home/${attr.git.user}/${name}.git/ /var/www/${name}
cat <<'EOF' >> /home/${attr.git.user}/${name}.git/hooks/post-receive
#!/bin/sh
GIT_WORK_TREE=/home/${attr.git.user}/${name}.git/ ${pkgs.git}/bin/git checkout -f
EOF
chmod +x /home/${attr.git.user}/${name}.git/hooks/post-receive
chown ${attr.git.user}:users -R /home/${attr.git.user}/${name}.git/
chown ${attr.git.user}:users -R /var/www/${name}
chmod a+r /var/www/${name}
fi
'')
cfg.domains);
......
......@@ -119,10 +119,7 @@ with lib;
#security.polkit.enable = false;
navi.components = {
bootloader = {
enable = true;
verbose = false;
};
bootloader.enable = true;
xdg.enable = true;
shell.enable = true;
multiplexer.enable = true;
......
......@@ -65,6 +65,7 @@ with lib;
navi.components.hardening.scudo = false;
navi.components = {
bootloader.verbose = false;
vte.enable = true;
browser.enable = true;
# userspace takes ~2s to boot with the standard configuration, enabling a
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment