added actual hardware identifiers & atual network config

This commit is contained in:
Dennis Frieberg 2023-09-22 14:20:11 +02:00
parent f9672df9cd
commit 2b0eec7dbf
Signed by: nerf
GPG key ID: 1EC6F5573876CC80
7 changed files with 107 additions and 3 deletions

View file

@ -0,0 +1,8 @@
{
imports = [ ];
boot.loader.grub = {
device = "nodev";
enable = true;
};
}

View file

@ -1,7 +1,15 @@
flake-inputs:
{config, pkgs, lib, ... }: {
imports = [(import ./mail.nix flake-inputs)];
imports = [
./hardware-configuration.nix
(import ./mail.nix flake-inputs)
../../roles
./boot.nix
./network.nix
];
# System configuration here
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,24 @@
{config, lib, pkgs, modulesPath, ...}: {
imports = [ ];
boot.initrd.availableKernelModules =
[ "ata_piix" "sr_mod" "xen_bklfront" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a72da670-f631-49b1-bcb3-6d378cc1f2d0";
fsType = "ext4";
};
fileSystems."/var/mail" = {
device = "/dev/disk/by-uuid/23c44c93-5035-4e29-9e46-75c1c08f4cea";
fsType = "ext4";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/8bc30d17-3c08-4648-ab18-8c723523be1a"; }];
nix.settings.max-jobs = lib.mkDefault 4;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -23,12 +23,12 @@ flake-inputs:
# Fun dovecot stuff :
# mailDirectory = "/var/vmail/"; # directory to store mail leave at default.
mailDirectory = "/var/mail/vmail/"; # directory to store mail
hierarchySeparator = "/"; # seperator for imap mailboxes from client view
# Caching of search indices
indexDir = "/var/lib/dovecot/indices";
indexDir = "/var/mail/lib/dovecot/indices";
fullTextSearch = {
enforced = "body"; # only brute force headers if no search index is available
};

View file

@ -0,0 +1,15 @@
# We sohuld put that config somewhere in roles and give it a parameter or something,
# everyone gets the same nameserver and the same prefixLength and address vs defaultGateway alsways
# depend on the same thing
{
imports = [ ];
networking = {
interfaces.enX0.ipv4.addresses = [ {
addresses = "192.168.0.28";
prefixLength = 16;
} ];
defaultGateway = "192.168.0.155";
nameservers = ["130.83.2.22" "130.83.56.60" "130.83.22.60" "130.82.22.63"];
};
}