checking some stuff
This commit is contained in:
parent
5c1af20894
commit
a9aaa9bfcf
4 changed files with 23 additions and 1 deletions
|
@ -4,6 +4,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
./apps
|
./apps
|
||||||
./containers
|
./containers
|
||||||
|
./fedi
|
||||||
./fonts
|
./fonts
|
||||||
./games
|
./games
|
||||||
./home
|
./home
|
||||||
|
|
11
modules/fedi/default.nix
Normal file
11
modules/fedi/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ lib, config, ... }: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
inherit (config) conf;
|
||||||
|
in mkIf conf.fedi.enable {
|
||||||
|
services.akkoma = {
|
||||||
|
enable = true;
|
||||||
|
nginx = {
|
||||||
|
onlySSL = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,7 +8,16 @@ in mkIf conf.website.enable {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
return = "200 \"Faggot\"";
|
return = "200 \"faggot\"";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"fedi.twoneis.site" = {
|
||||||
|
serverName = "git.twoneis.site";
|
||||||
|
forceSSL = false;
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
return = "200 \"faggot on fedi?\"";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,6 +19,7 @@ in {
|
||||||
ssh.enable = mkEnableOption "Install my public key to allow accessing this machine via ssh.";
|
ssh.enable = mkEnableOption "Install my public key to allow accessing this machine via ssh.";
|
||||||
nginx.enable = mkEnableOption "Enable nginx.";
|
nginx.enable = mkEnableOption "Enable nginx.";
|
||||||
website.enable = mkEnableOption "Serve website through nginx. Nginx must be enabled to work correctly.";
|
website.enable = mkEnableOption "Serve website through nginx. Nginx must be enabled to work correctly.";
|
||||||
|
fedi.enable = mkEnableOption "Host a fedi server on this machine.";
|
||||||
|
|
||||||
# Mixed and more complex options
|
# Mixed and more complex options
|
||||||
username = mkOption {
|
username = mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue