Basic configuration for new servers and start modularizing config
This commit is contained in:
parent
82bb5b401c
commit
ca93d09059
38 changed files with 622 additions and 316 deletions
|
@ -6,49 +6,35 @@
|
|||
./secret.nix
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
mirroredBoots = [
|
||||
{ devices = [ "nodev" ]; path = "/boot/ESP0"; }
|
||||
{ devices = [ "nodev" ]; path = "/boot/ESP1"; }
|
||||
];
|
||||
};
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot/EFI";
|
||||
};
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
networking = {
|
||||
hostName = "urithiru";
|
||||
hostId = "079e60ba";
|
||||
useDHCP = false;
|
||||
interfaces = {
|
||||
eno1.useDHCP = false;
|
||||
eno2.useDHCP = false;
|
||||
eno3.useDHCP = false;
|
||||
eno4.useDHCP = false;
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
defaultUserShell = pkgs.zsh;
|
||||
users.charlotte = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "systemd-journal" ];
|
||||
chvp = {
|
||||
stateVersion = "20.09";
|
||||
docker.enable = true;
|
||||
nginx.enable = true;
|
||||
ovh.enable = true;
|
||||
sshd.enable = true;
|
||||
zfs = {
|
||||
enable = true;
|
||||
backups = [
|
||||
{
|
||||
path = "zroot/safe/data";
|
||||
remotePath = "zdata/recv/urithiru/safe/data";
|
||||
fast = true;
|
||||
location = "192.168.0.2";
|
||||
}
|
||||
{
|
||||
path = "zdata/data";
|
||||
remotePath = "zdata/data";
|
||||
fast = false;
|
||||
location = "192.168.0.2";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
services.openssh.permitRootLogin = "prohibit-password";
|
||||
|
||||
services.zfs.autoScrub.enable = true;
|
||||
services.zfs.trim.enable = true;
|
||||
|
||||
system.stateVersion = "20.09";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue