]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet.nix
mermet: fix the networking
[sourcephile-nix.git] / servers / mermet.nix
1 # This is the root configuration of the target machine.
2 # Usable by nixos-install and used by nixops.
3 # It is NOT copied nor usable on the target machine,
4 # only the resulting closure is copied to the target machine.
5 {pkgs, lib, config, options, nodes, resources, ...}:
6 let
7 inherit (builtins.extraBuiltins) pass;
8 in
9 {
10 # This value determines the NixOS release with which your system is to be
11 # compatible, in order to avoid breaking some software such as database servers.
12 # You should change this only after NixOS release notes say you should.
13 system.stateVersion = "19.09"; # Did you read the comment?
14
15 nixpkgs.overlays = import ../overlays.nix;
16
17 imports =
18 [ ../nixos/defaults.nix
19 mermet/apu2e4.nix
20 mermet/zfs.nix
21 mermet/lesptts.nix
22 mermet/shorewall.nix
23 mermet/unbound.nix
24 mermet/nsd.nix
25 #mermet/rspamd.nix
26 #mermet/dovecot2.nix
27 ];
28
29 networking = rec {
30 hostName = "mermet";
31 domainBase = "sourcephile";
32 domain = "${domainBase}.fr";
33 };
34
35 users = {
36 mutableUsers = false;
37 users = {
38 root = rec {
39 initialPassword = password;
40 password = pass "servers/mermet/login/root";
41 openssh.authorizedKeys.keys = [
42 (pass "members/julm/ssh.pub")
43 ];
44 };
45 };
46 groups = {
47 };
48 };
49
50 environment = {
51 systemPackages = with pkgs; [
52 cryptsetup
53 fio
54 git
55 gptfdisk
56 lm_sensors
57 smartctl-tbw
58 socat
59 ];
60 };
61 }