nix-dotfiles/systems/palatine-hill/configuration.nix

61 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-24 18:48:52 +01:00
{ pkgs, ... }:
{
2023-12-23 07:39:10 +01:00
time.timeZone = "America/New_York";
console.keyMap = "us";
networking.hostId = "dc2f9781";
2023-12-26 04:07:18 +01:00
boot = {
zfs.extraPools = [ "ZFS-primary" ];
2023-12-27 10:03:13 +01:00
loader.grub.device = "/dev/sda";
filesystem = "zfs";
useSystemdBoot = true;
2023-12-26 04:07:18 +01:00
};
2023-12-23 07:39:10 +01:00
virtualisation = {
docker = {
enable = true;
recommendedDefaults = true;
logDriver = "local";
daemon."settings" = {
2023-12-25 19:17:39 +01:00
experimental = true;
2023-12-23 07:39:10 +01:00
exec-opts = [ "native.cgroupdriver=systemd" ];
log-opts = {
max-size = "10m";
max-file = "5";
};
data-root = "/var/lib/docker2";
};
storageDriver = "overlay2";
};
podman = {
enable = true;
recommendedDefaults = true;
};
};
environment.systemPackages = with pkgs; [
docker-compose
];
services = {
samba.enable = true;
nfs.server.enable = true;
haproxy = {
enable = true;
config = builtins.readFile ./conf/haproxy.conf;
};
openssh.ports = [ 666 ];
smartd.enable = true;
zfs = {
trim.enable = true;
autoScrub.enable = true;
};
2023-12-23 07:39:10 +01:00
};
networking.firewall.enable = false;
2023-12-23 08:27:00 +01:00
system.stateVersion = "23.05";
}