mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-29 23:30:51 +01:00
43 lines
997 B
Nix
43 lines
997 B
Nix
{ config, pkgs, lib, modulesPath, ... }:
|
|
let
|
|
hostName = "newton";
|
|
in
|
|
{
|
|
|
|
imports =
|
|
[
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
./hardware.nix
|
|
./home-julien.nix
|
|
];
|
|
|
|
luj = {
|
|
filerun.enable = true;
|
|
zfs-mails.enable = true;
|
|
hydra = {
|
|
enable = true;
|
|
nginx = {
|
|
enable = true;
|
|
subdomain = "hydra";
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.gnupg.agent.enable = true;
|
|
|
|
networking.hostName = hostName; # Define your hostname.
|
|
networking.hostId = "f7cdfbc9";
|
|
networking.interfaces.enp2s0f0.useDHCP = true;
|
|
networking.interfaces.enp2s0f1.useDHCP = true;
|
|
networking.firewall.enable = true;
|
|
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
|
networking.firewall.allowedUDPPorts = [ 22 80 443 ];
|
|
networking.firewall.allowedUDPPortRanges = [{ from = 60000; to = 61000; }];
|
|
|
|
|
|
services.zfs.autoSnapshot.enable = true;
|
|
services.zfs.autoScrub.enable = true;
|
|
|
|
system.stateVersion = "21.05"; # Did you read the comment?
|
|
|
|
}
|