nix-config/containers/wordpress.nix
Donovan Glover 043e901711
containers: add wordpress
This is the start of my fun attempt at using NixOS containers for web
services as a Docker replacement.

After spending some time on other servers I realized that I don't
actually *need* my dotfiles on those servers, so it becomes
significantly faster to build these containers without worrying about
home-manager and command-line programs I use on the host.

Main advantages include web service configuration with Nix instead of
Docker. Disadvantages include increased complexity for anything that
isn't already maintained by others in nixpkgs.
2024-10-11 16:39:11 -04:00

34 lines
470 B
Nix

{
nix-config,
pkgs,
...
}:
{
imports = with nix-config.nixosModules; [
system
];
users.defaultUserShell = pkgs.fish;
programs = {
fish.enable = true;
neovim.enable = true;
};
environment = {
systemPackages = with pkgs; [ kitty ];
shells = with pkgs; [ fish ];
variables = {
TERM = "xterm-kitty";
};
};
networking = {
firewall.allowedTCPPorts = [ 80 ];
};
services.wordpress.sites.localhost = { };
}