mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
Compare commits
2 commits
f5bab74dfa
...
0545217233
Author | SHA1 | Date | |
---|---|---|---|
0545217233 | |||
eba2a75276 |
6 changed files with 75 additions and 19 deletions
|
@ -155,6 +155,7 @@
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-manager/home.nix
|
./home-manager/home.nix
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
# manage.
|
# manage.
|
||||||
home.username = "misschloe777";
|
home.username = "misschloe777";
|
||||||
home.homeDirectory = "/home/misschloe777";
|
home.homeDirectory = "/home/misschloe777";
|
||||||
|
|
||||||
# This value determines the Home Manager release that your configuration is
|
# This value determines the Home Manager release that your configuration is
|
||||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
# introduces backwards incompatible changes.
|
# introduces backwards incompatible changes.
|
||||||
|
@ -350,6 +349,12 @@
|
||||||
network.startWhenNeeded = true;
|
network.startWhenNeeded = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.atuin = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
search_mode = "fuzzy";
|
||||||
|
};
|
||||||
|
};
|
||||||
# programs.moonlight = {
|
# programs.moonlight = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# configs.stable = {
|
# configs.stable = {
|
||||||
|
|
|
@ -1,11 +1,47 @@
|
||||||
{pkgs, ...}:{
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
pleromaUrl = "eepy.rougebordeaux.xyz";
|
||||||
|
pleromaMediaUrl = "blurb.rougebordeaux.xyz";
|
||||||
|
theme = "fantasy-scroll-blossom";
|
||||||
|
themeUrl = "https://plthemes.vulpes.one/themes/${theme}/${theme}.json";
|
||||||
|
background = "";
|
||||||
|
emojis = [ ];
|
||||||
|
styles = ''
|
||||||
|
{
|
||||||
|
"pleroma-dark": [ "Pleroma Dark", "#121a24", "#182230", "#b9b9ba", "#d8a070", "#d31014", "#0fa00f", "#0095ff", "#ffa500" ],
|
||||||
|
"pleroma-light": [ "Pleroma Light", "#f2f4f6", "#dbe0e8", "#304055", "#f86f0f", "#d31014", "#0fa00f", "#0095ff", "#ffa500" ],
|
||||||
|
"classic-dark": [ "Classic Dark", "#161c20", "#282e32", "#b9b9b9", "#baaa9c", "#d31014", "#0fa00f", "#0095ff", "#ffa500" ],
|
||||||
|
"bird": [ "Bird", "#f8fafd", "#e6ecf0", "#14171a", "#0084b8", "#e0245e", "#17bf63", "#1b95e0", "#fab81e"],
|
||||||
|
"ir-black": [ "Ir Black", "#000000", "#242422", "#b5b3aa", "#ff6c60", "#FF6C60", "#A8FF60", "#96CBFE", "#FFFFB6" ],
|
||||||
|
"monokai": [ "Monokai", "#272822", "#383830", "#f8f8f2", "#f92672", "#F92672", "#a6e22e", "#66d9ef", "#f4bf75" ],
|
||||||
|
|
||||||
|
"redmond-xx": "/static/themes/redmond-xx.json",
|
||||||
|
"redmond-xx-se": "/static/themes/redmond-xx-se.json",
|
||||||
|
"redmond-xxi": "/static/themes/redmond-xxi.json",
|
||||||
|
"breezy-dark": "/static/themes/breezy-dark.json",
|
||||||
|
"breezy-light": "/static/themes/breezy-light.json",
|
||||||
|
"mammal": "/static/themes/mammal.json",
|
||||||
|
"${theme}": "/static/themes/${theme}.json"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
akkoma-overlay = self: super: {
|
||||||
|
akkoma = super.akkkoma.overrideAttrs (old: {
|
||||||
|
postPatch = ''
|
||||||
|
cp ${pkgs.writeText "styles.json" styles} $out/priv/static/themes
|
||||||
|
cp ${./akkoma/terms-of-services.html} $out/priv/static/terms-of-service.html
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ akkoma-overlay ];
|
||||||
services.akkoma.enable = true;
|
services.akkoma.enable = true;
|
||||||
services.akkoma.initDb.enable = true;
|
services.akkoma.initDb.enable = true;
|
||||||
services.akkoma.config = {
|
services.akkoma.config = {
|
||||||
":pleroma" = {
|
":pleroma" = {
|
||||||
":instance" = {
|
":instance" = {
|
||||||
name = "e^akkoma + 1 = 0";
|
name = "e^akkoma + 1 = 0";
|
||||||
description = "the cuntiest french akkoma instance<3. centres d'intérêts : la mode, les sciences, la musique. mais ça ne vous empêche pas de parler de n'importe quoi! join us !";
|
description = "the cuntiest french akkoma instance<3. on aime la mode, les sciences, et la musique. mais ça ne vous empêche pas de parler de n'importe quoi! join us ! par contre c'est 161 ici donc nofaf ou vs serez ban";
|
||||||
email = "admin@babychou.me";
|
email = "admin@babychou.me";
|
||||||
registration_open = false;
|
registration_open = false;
|
||||||
max_pinned_statuses = 1;
|
max_pinned_statuses = 1;
|
||||||
|
@ -13,7 +49,7 @@
|
||||||
"Pleroma.Web.Endpoint" = {
|
"Pleroma.Web.Endpoint" = {
|
||||||
http.ip = "127.0.0.1";
|
http.ip = "127.0.0.1";
|
||||||
http.port = 4000;
|
http.port = 4000;
|
||||||
url.host = "eepy.rougebordeaux.xyz";
|
url.host = "${pleromaUrl}";
|
||||||
};
|
};
|
||||||
"Pleroma.Captcha.Kocaptcha" = {
|
"Pleroma.Captcha.Kocaptcha" = {
|
||||||
endpoint = "https://captcha.kotobank.ch";
|
endpoint = "https://captcha.kotobank.ch";
|
||||||
|
@ -27,25 +63,25 @@
|
||||||
"Pleroma.Upload.Filter.AnonymizeFilename"
|
"Pleroma.Upload.Filter.AnonymizeFilename"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
":configurable_from_database" = true;
|
":configurable_from_database" = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."http://eepy.rougebordeaux.xyz".extraConfig = ''
|
services.caddy.virtualHosts."${pleromaUrl}".extraConfig = ''
|
||||||
log {
|
log {
|
||||||
output file /var/log/caddy/akkoma.log
|
output file /var/log/caddy/akkoma.log
|
||||||
}
|
}
|
||||||
|
|
||||||
encode gzip
|
encode zstd gzip
|
||||||
|
|
||||||
reverse_proxy 127.0.0.1:4000
|
reverse_proxy 127.0.0.1:4000
|
||||||
'';
|
'';
|
||||||
services.caddy.virtualHosts."http://blurb.rougebordeaux.xyz".extraConfig = ''
|
services.caddy.virtualHosts."${pleromaMediaUrl}".extraConfig = ''
|
||||||
log {
|
log {
|
||||||
output file /var/log/caddy/akkoma_media.log
|
output file /var/log/caddy/akkoma_media.log
|
||||||
}
|
}
|
||||||
|
|
||||||
encode gzip
|
encode zstd gzip
|
||||||
|
|
||||||
reverse_proxy 127.0.0.1:4000
|
reverse_proxy 127.0.0.1:4000
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<p>Cette instance est hébergée en France. Tout contenu doit se conformer aux lois locales.</p>
|
||||||
|
<ol>
|
||||||
|
<li>Tout contenu raciste/sexiste/xenophobe/transphobe est banni. La première fois, vous êtes averti. La deuxième, vous dégagez!</li>
|
||||||
|
<li></li>
|
||||||
|
<li>Le nsfw est autorisé, cependant j'attends que vous mettiez les spoilers.</li>
|
||||||
|
</ol>
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./nh.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
7
shared/client/nh.nix
Normal file
7
shared/client/nh.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 14d --keep 3";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue