NixOS configs for new Redbrick deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
m1cr0man 20d785b508 Change TLD to redbrick.dcu.ie 2 years ago
common Change TLD to redbrick.dcu.ie 2 years ago
hosts Enable acme production mode 2 years ago
services Fix gitea startup 2 years ago
.gitignore Add working phpfpm config for first few users 2 years ago
README.md Add working phpfpm config for first few users 2 years ago

README.md

NixOS Configurations

Used to deploy redbrick 2.0

Installation

cd /etc/nixos
tar -cjf ~/nixos_backup.tar.bz2 *
rm *
git clone $THIS_REPO .
ln -s hosts/$(hostname)/configuration.nix .
nixos-rebuild switch

Deploying Apache/httpd

users.nix needs to be generated before deploying Apache. Use this command:

cd services/httpd
ldapsearch -b o=redbrick -h ldap.internal -xLLL objectClass=posixAccount uid homeDirectory gidNumber | python3 ldap2nix.py /storage/webtree/ > users.nix