marge remote and local + some changes
This commit is contained in:
commit
465bac892c
|
@ -1,6 +1,114 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
cgitrc = pkgs.writeText "cgitrc" ''
|
||||||
|
css=/static/cgit.css
|
||||||
|
logo=/static/logo.png
|
||||||
|
favicon=/static/favicon.ico
|
||||||
|
root-title=beepboop.systems
|
||||||
|
root-desc=quality git hosting
|
||||||
|
|
||||||
|
readme=:README
|
||||||
|
readme=:readme
|
||||||
|
readme=:readme.txt
|
||||||
|
readme=:README.txt
|
||||||
|
readme=:readme.md
|
||||||
|
readme=:README.md
|
||||||
|
|
||||||
|
remove-suffix=1
|
||||||
|
section-from-path=1
|
||||||
|
|
||||||
|
section-sort=0
|
||||||
|
|
||||||
|
section=meta
|
||||||
|
|
||||||
|
repo.url=about
|
||||||
|
repo.path=/doesnt/exist
|
||||||
|
repo.desc=about this site
|
||||||
|
|
||||||
|
section=other services at beepboop.systems
|
||||||
|
|
||||||
|
repo.url=bitwarden
|
||||||
|
repo.path=/doesnt/exist
|
||||||
|
repo.desc=a simple password manager
|
||||||
|
|
||||||
|
repo.url=radicale
|
||||||
|
repo.path=/doesnt/exist
|
||||||
|
repo.desc=a simple calendar server
|
||||||
|
|
||||||
|
repo.url=roundcube
|
||||||
|
repo.path=/doesnt/exist
|
||||||
|
repo.desc=mail.beepboop.systems webmail
|
||||||
|
|
||||||
|
repo.url=gitea
|
||||||
|
repo.path=/doesnt/exist
|
||||||
|
repo.desc=real git hosting services (until this one is fully operational)
|
||||||
|
|
||||||
|
section=projects
|
||||||
|
|
||||||
|
repo.url=advent
|
||||||
|
repo.path=/var/lib/git/advent
|
||||||
|
repo.desc=advent of code solutions
|
||||||
|
|
||||||
|
repo.url=desmos-computer
|
||||||
|
repo.path=/var/lib/git/desmos-computer
|
||||||
|
repo.desc=a minimal ISA implemented in the Desmos graphing calculator
|
||||||
|
|
||||||
|
repo.url=dot_testing
|
||||||
|
repo.path=/var/lib/git/dot_testing
|
||||||
|
repo.desc=configuration files for NixOS/GNU+Linux boxes
|
||||||
|
|
||||||
|
repo.url=esgd
|
||||||
|
repo.path=/var/lib/git/esgd
|
||||||
|
repo.desc=the exceedingly simple gopher daemon
|
||||||
|
|
||||||
|
repo.url=mail-sync
|
||||||
|
repo.path=/var/lib/git/mail-sync
|
||||||
|
repo.desc=synchronize mail from walled gardens
|
||||||
|
|
||||||
|
repo.url=mastosnake
|
||||||
|
repo.path=/var/lib/git/mastosnake
|
||||||
|
repo.desc=a low quality clone of Twitter Plays Snake
|
||||||
|
|
||||||
|
repo.url=secmsg
|
||||||
|
repo.path=/var/lib/git/secmsg
|
||||||
|
repo.desc=a stupid (in)secure messaging client thing
|
||||||
|
|
||||||
|
repo.url=ultimate
|
||||||
|
repo.path=/var/lib/git/ultimate
|
||||||
|
repo.desc=ultimate tic tac toe solving engine
|
||||||
|
|
||||||
|
repo.url=wordlefish
|
||||||
|
repo.path=/var/lib/git/wordlefish
|
||||||
|
repo.desc=use information theory to solve wordle puzzles
|
||||||
|
|
||||||
|
section=irc robots
|
||||||
|
|
||||||
|
repo.url=botanybot
|
||||||
|
repo.path=/var/lib/git/botanybot
|
||||||
|
repo.desc=water bots on ~.club
|
||||||
|
|
||||||
|
repo.url=coinminer
|
||||||
|
repo.path=/var/lib/git/coinminer
|
||||||
|
repo.desc=mine fake coins on irc
|
||||||
|
|
||||||
|
repo.url=chaosbot
|
||||||
|
repo.path=/var/lib/git/chaosbot
|
||||||
|
repo.desc=robot to protect a user on chaos
|
||||||
|
|
||||||
|
repo.url=modbot
|
||||||
|
repo.path=/var/lib/git/modbot
|
||||||
|
repo.desc=modular irc robot
|
||||||
|
|
||||||
|
repo.url=pychaos
|
||||||
|
repo.path=/var/lib/git/pychaos
|
||||||
|
repo.desc=python chaos bot
|
||||||
|
|
||||||
|
repo.url=universalducks
|
||||||
|
repo.path=/var/lib/git/universalducks
|
||||||
|
repo.desc=cross channel irc ducks
|
||||||
|
'';
|
||||||
|
in {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -25,6 +133,7 @@
|
||||||
dig
|
dig
|
||||||
htop
|
htop
|
||||||
gnumake
|
gnumake
|
||||||
|
neovim
|
||||||
];
|
];
|
||||||
|
|
||||||
system.copySystemConfiguration = true;
|
system.copySystemConfiguration = true;
|
||||||
|
@ -32,22 +141,19 @@
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/vda";
|
boot.loader.grub.device = "/dev/vda";
|
||||||
|
|
||||||
# services.cgit = {
|
# cgit
|
||||||
# "beepboop.systems" = {
|
users = {
|
||||||
# extraConfig = ''
|
groups.git = { };
|
||||||
# root-desc="testing"
|
users.git = {
|
||||||
#
|
createHome = true;
|
||||||
# section=main
|
home = /var/lib/git;
|
||||||
# repo.url=dot_testing
|
isSystemUser = true;
|
||||||
# repo.path=/var/lib/git/dot_testing
|
shell = "${pkgs.git}/bin/git-shell";
|
||||||
# repo.desc=configuration for NixOS/Linux systems
|
group = "git";
|
||||||
# repo.owner=rndusr
|
};
|
||||||
#
|
};
|
||||||
# readme=:README.md
|
|
||||||
# '';
|
services.fcgiwrap = { enable = true; user = "git"; group = "git"; };
|
||||||
# enable = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
networking.hostName = "netbox";
|
networking.hostName = "netbox";
|
||||||
|
|
||||||
|
@ -177,12 +283,54 @@
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = "/var/www/beepboop.systems";
|
root = "/var/www/beepboop.systems";
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx.virtualHosts."webhooks.beepboop.systems" = {
|
locations."~* ^/static/(.+.(ico|css))$" = {
|
||||||
forceSSL = true;
|
extraConfig = ''
|
||||||
enableACME = true;
|
alias ${pkgs.cgit}/cgit/$1;
|
||||||
root = "/var/www/webhooks.beepboop.systems";
|
'';
|
||||||
|
};
|
||||||
|
locations."/static/logo.png" = {
|
||||||
|
extraConfig = ''
|
||||||
|
try_files /icon.png /icon.png;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/about" = {
|
||||||
|
extraConfig = ''
|
||||||
|
try_files /about.html /about.html;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/bitwarden" = {
|
||||||
|
extraConfig = ''
|
||||||
|
return 301 https://bit.beepboop.systems;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/gitea" = {
|
||||||
|
extraConfig = ''
|
||||||
|
return 301 https://git.beepboop.systems/rndusr;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/radicale" = {
|
||||||
|
extraConfig = ''
|
||||||
|
return 301 https://cal.beepboop.systems;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/roundcube" = {
|
||||||
|
extraConfig = ''
|
||||||
|
return 301 https://mail.beepboop.systems;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/" = {
|
||||||
|
extraConfig = ''
|
||||||
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
|
fastcgi_param CGIT_CONFIG ${cgitrc};
|
||||||
|
fastcgi_param SCRIPT_FILENAME ${pkgs.cgit}/cgit/cgit.cgi;
|
||||||
|
fastcgi_split_path_info ^(/?)(.+)$;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
fastcgi_param QUERY_STRING $args;
|
||||||
|
fastcgi_param HTTP_HOST $server_name;
|
||||||
|
fastcgi_pass unix:${config.services.fcgiwrap.socketAddress};
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."git.beepboop.systems" = {
|
services.nginx.virtualHosts."git.beepboop.systems" = {
|
||||||
|
@ -241,19 +389,19 @@
|
||||||
email = "nickforanick@protonmail.com";
|
email = "nickforanick@protonmail.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.roundcube = {
|
services.roundcube = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# # this is the url of the vhost, not necessarily the same as the fqdn of
|
# this is the url of the vhost, not necessarily the same as the fqdn of
|
||||||
# # the mailserver
|
# the mailserver
|
||||||
# hostName = "cube.beepboop.systems";
|
hostName = "cube.beepboop.systems";
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# # starttls needed for authentication, so the fqdn required to match
|
# starttls needed for authentication, so the fqdn required to match
|
||||||
# # the certificate
|
# the certificate
|
||||||
# $config['smtp_server'] = "tls://${config.mailserver.fqdn}";
|
$config['smtp_server'] = "tls://${config.mailserver.fqdn}";
|
||||||
# $config['smtp_user'] = "%u";
|
$config['smtp_user'] = "%u";
|
||||||
# $config['smtp_pass'] = "%p";
|
$config['smtp_pass'] = "%p";
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."roundcube.beepboop.systems" = {
|
services.nginx.virtualHosts."roundcube.beepboop.systems" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
24
flake.lock
24
flake.lock
|
@ -25,11 +25,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1705534402,
|
"lastModified": 1705709716,
|
||||||
"narHash": "sha256-mOWT45HLd8dm8FJNmrgngotE5NRJ+2arz65m1Kk0LBA=",
|
"narHash": "sha256-YJdWSN3ra0FsAQT5PXe7uXxMeAXxTR+SY/wVOO1c6Bs=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "6a928ce99e4ccb09e59c1f58052bd65027249c8a",
|
"rev": "d7ad3362283fced58410547650be31e37f9d0f41",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -77,11 +77,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705476964,
|
"lastModified": 1705659542,
|
||||||
"narHash": "sha256-W5OK1fnj4qdn1HWOlxV2S3YiUvfaVjQM5ldWVpGV1fs=",
|
"narHash": "sha256-WA3xVfAk1AYmFdwghT7mt/erYpsU6JPu9mdTEP/e9HQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "85c3b600f660abd86e94cbcd1c46733943197a07",
|
"rev": "10cd9c53115061aa6a0a90aad0b0dde6a999cdb9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -93,11 +93,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705331948,
|
"lastModified": 1705641746,
|
||||||
"narHash": "sha256-qjQXfvrAT1/RKDFAMdl8Hw3m4tLVvMCc8fMqzJv0pP4=",
|
"narHash": "sha256-D6c2aH8HQbWc7ZWSV0BUpFpd94ImFyCP8jFIsKQ4Slg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b8dd8be3c790215716e7c12b247f45ca525867e2",
|
"rev": "d2003f2223cbb8cd95134e4a0541beea215c1073",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -209,12 +209,12 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-wGl3ZnqjhpAEpTkzgjWxgsbmGX9c7TPCM4I0okuOYFE=",
|
"narHash": "sha256-5xUIhLgUWLJ08JmAOugcD2ut0pNNDzoBOJmcoHA5yAg=",
|
||||||
"path": "/nix/store/6nljlgsf56x9pglryla3l480awympq84-source/builds",
|
"path": "/nix/store/dz347nzxk63b999sm3cb7k450f90xzlq-source/builds",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/6nljlgsf56x9pglryla3l480awympq84-source/builds",
|
"path": "/nix/store/dz347nzxk63b999sm3cb7k450f90xzlq-source/builds",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./polybar.nix
|
|
||||||
./gnupg.nix
|
./gnupg.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./pulse.nix
|
./pulse.nix
|
||||||
|
|
Loading…
Reference in New Issue