infrastructure/machines/public-cof/configuration.nix

54 lines
1 KiB
Nix
Raw Normal View History

2021-11-13 01:52:04 +01:00
{ config, pkgs, lib, ... }:
2021-11-13 00:59:59 +01:00
{
imports =
[
./hardware-configuration.nix
./programs.nix
./system.nix
2021-11-13 01:48:32 +01:00
./acme.nix
2021-11-13 00:59:59 +01:00
./networking.nix
2021-11-13 01:48:32 +01:00
./nextcloud.nix
2021-11-13 01:52:04 +01:00
./minecraft.nix
2021-11-15 00:54:27 +01:00
./nur.nix
2021-11-13 02:52:16 +01:00
# ./factorio.nix # TODO
./nginx.nix
2021-11-20 21:01:42 +01:00
./cryptpad.nix
2021-11-14 23:56:00 +01:00
./hedgedoc.nix
2021-11-15 00:54:27 +01:00
./secrets
2021-11-13 00:59:59 +01:00
# TODO monitoring
];
2021-11-13 01:52:04 +01:00
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"minecraft-server"
2021-11-13 01:52:22 +01:00
"factorio-headless"
2021-11-13 01:52:04 +01:00
];
2021-11-13 01:52:22 +01:00
2021-11-13 00:59:59 +01:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keyFiles = [
./pubkeys/gdd.keys
./pubkeys/raito.keys
2021-11-15 00:16:01 +01:00
./pubkeys/mrf.keys
2021-11-13 00:59:59 +01:00
];
system.stateVersion = "21.05";
}