nixfiles/presets/nixos/containerBase.nix

38 lines
742 B
Nix
Raw Permalink Normal View History

2023-09-18 03:56:58 +01:00
{
tree,
inputs,
...
}: {
imports =
(with tree; [
2024-07-24 14:13:59 +01:00
profiles.nixos.base
2023-09-18 03:56:58 +01:00
users.root
2024-07-24 15:11:46 +01:00
presets.home-manager.by-user.root.minimalServer
2023-09-18 03:56:58 +01:00
modules.nixos.rcloneServe
modules.nixos.rcloneSync
2023-09-18 03:56:58 +01:00
modules.nixos.secrets
])
++ [
# Default modules which are usually included in nixos.nix
inputs.home-manager-unstable.nixosModules.home-manager
inputs.vaultui.nixosModules.default
];
networking.firewall = {
enable = true;
allowPing = true;
checkReversePath = "loose";
};
# TODO: Better DNS setup
services.resolved.enable = false;
environment.etc."resolv.conf".text = ''
nameserver 8.8.8.8
nameserver 8.8.4.4
'';
time.timeZone = "Europe/London";
}