mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-29 11:44:45 +01:00
043e901711
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.
34 lines
470 B
Nix
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 = { };
|
|
}
|