Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GovanifY
navi
Commits
232c0228
Verified
Commit
232c0228
authored
Jul 09, 2021
by
GovanifY
Browse files
linux: drop unneeded patches
components/monitor: add needed fields for email alerts
parent
0889b7a8
Changes
5
Hide whitespace changes
Inline
Side-by-side
components/bootloader.nix
View file @
232c0228
...
...
@@ -94,7 +94,7 @@ in
)
];
boot
.
kernelPatches
=
[
boot
.
kernelPatches
=
mkIf
(
cfg
.
verbose
)
[
{
name
=
"silent-boot"
;
patch
=
null
;
...
...
components/server/monitor.nix
View file @
232c0228
...
...
@@ -303,6 +303,10 @@ in
listenAddress
=
"localhost"
;
configuration
=
{
route
.
receiver
=
"email"
;
global
=
{
smtp_smarthost
=
"localhost:25"
;
smtp_from
=
"alertmanager@
${
cfg
.
domain
}
"
;
};
receivers
=
[
{
name
=
"email"
;
...
...
components/server/web.nix
View file @
232c0228
...
...
@@ -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
);
...
...
profiles/default.nix
View file @
232c0228
...
...
@@ -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
;
...
...
profiles/graphical.nix
View file @
232c0228
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment