HermitNix_DEPRECATED/configuration.nix

80 lines
2.0 KiB
Nix
Raw Normal View History

2023-10-20 21:52:37 +00:00
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
# Services
./services/ssh.nix
./services/nginx.nix
2023-10-30 11:27:52 +00:00
./services/email.nix
2023-10-20 21:52:37 +00:00
./services/nextcloud.nix
./services/tt-rss.nix
./services/owncast.nix
# Sites
./sites/hermitcollective.net
./sites/blog.hermitcollective.net
./sites/hertog.hermitcollective.net
# Users
./users/hertog.nix
./users/sara.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "HermitCollective";
networking.domain = "hermitcollective.net";
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# Configure keymap in X11
services.xserver = {
layout = "us";
xkbVariant = "";
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Accept ACME terms
security.acme.acceptTerms = true;
security.acme.defaults.email = "hertog@fsfe.org";
environment.systemPackages = with pkgs; [
neofetch
helix
hyfetch
bottom
iftop
openssl
git
];
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 80 443 8080 8181 1935 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}