snowfield/machines/lisa/default.nix
2021-12-25 15:56:30 +01:00

39 lines
1.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
./hardware.nix
./home-julien.nix
];
luj.mediaserver.enable = true;
luj.homepage.enable = true;
luj.drone = {
enable = true;
nginx = {
enable = true;
subdomain = "ci";
};
};
nix.maxJobs = lib.mkDefault 8;
networking.hostName = "lisa"; # Define your hostname.
networking.interfaces.ens18.useDHCP = true;
networking.interfaces.ens19.useDHCP = false;
networking.interfaces.ens19.ipv6.addresses = [{
address = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb";
prefixLength = 120;
}];
networking.firewall.allowedTCPPorts = [ 22 80 443 8096 8920 ];
networking.firewall.allowedUDPPorts = [ 22 80 443 1900 7359 ];
networking.firewall.allowedUDPPortRanges = [{ from = 60000; to = 61000; }];
system.stateVersion = "20.09"; # Did you read the comment?
}