mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
75 lines
1.8 KiB
Nix
75 lines
1.8 KiB
Nix
# 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
|
||
../../users/julien.nix
|
||
../../users/default.nix
|
||
];
|
||
|
||
|
||
luj = {
|
||
mediaserver.enable = true;
|
||
homepage.enable = true;
|
||
bincache = {
|
||
enable = true;
|
||
subdomain = "bin";
|
||
};
|
||
drone = {
|
||
enable = true;
|
||
subdomain = "ci";
|
||
};
|
||
zfs-mails = {
|
||
enable = false;
|
||
name = "lisa";
|
||
smart.enable = false;
|
||
};
|
||
docs = {
|
||
enable = true;
|
||
nginx = {
|
||
enable = true;
|
||
subdomain = "docs";
|
||
};
|
||
};
|
||
bruit = {
|
||
enable = true;
|
||
nginx = {
|
||
enable = true;
|
||
subdomain = "bruit";
|
||
};
|
||
};
|
||
mailserver.enable = true;
|
||
|
||
};
|
||
|
||
nix.maxJobs = lib.mkDefault 4;
|
||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||
|
||
services.fail2ban.enable = true;
|
||
|
||
networking.hostName = "lisa";
|
||
networking.interfaces.ens20.useDHCP = false;
|
||
networking.interfaces.ens20.ipv4.addresses = [{ address = "212.129.40.11"; prefixLength = 32; }];
|
||
networking.localCommands = ''
|
||
ip r del default || ip r add default dev ens20
|
||
'';
|
||
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.nameservers = [ "8.8.8.8" ];
|
||
networking.hostId = "fbb334ae";
|
||
services.zfs.autoSnapshot.enable = true;
|
||
services.zfs.autoScrub.enable = true;
|
||
|
||
system.stateVersion = "21.11";
|
||
}
|