try to fix non-booting muffinman

This commit is contained in:
Michael Floßmann 2024-07-13 18:59:36 +02:00
parent 289a121824
commit c99de5c6a4
4 changed files with 38 additions and 24 deletions

View file

@ -25,9 +25,13 @@ in
# systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
# TODO: remove my mail address from here
swraid.enable = true;
swraid.mdadmConf = ''
MAILADDR michael.flossmann@posteo.net
'';
kernelParams = [ "ip=${static_ip}::${gateway}:255.255.255.0:${hostName}:" ];
kernelParams = builtins.trace "ip=${static_ip}::${gateway}:255.255.255.0:${hostName}:" [ "ip=${static_ip}::${gateway}:255.255.255.0:${hostName}:" ];
initrd = {
availableKernelModules = [ "igb" ];
# systemd.users.root.shell = "/bin/conspy";
@ -51,17 +55,25 @@ in
hostName = hostName;
networkmanager.enable = true;
useDHCP = false;
interfaces = {
eno2.ipv4.addresses = [
{
address = static_ip;
prefixLength = 24;
}
];
eno2 = {
ipv4.addresses = [
{
address = "${static_ip}";
prefixLength = 24;
}
];
};
};
defaultGateway = {
address = "${gateway}";
interface = "eno2";
};
defaultGateway = gateway;
nameservers = [
gateway
"${gateway}"
"9.9.9.9"
];
};
@ -114,10 +126,10 @@ in
# enableSSHSupport = true;
# };
# auto unlock storage drive
environment.etc.crypttab.text = ''
cryptstorage UUID=74b68945-6edf-4141-93d4-bcccb310f7df /etc/secrets/storage_keyfile.key
'';
# # auto unlock storage drive
# environment.etc.crypttab.text = ''
# cryptstorage UUID=74b68945-6edf-4141-93d4-bcccb310f7df /etc/secrets/storage_keyfile.key
# '';
# Enable the OpenSSH daemon.
services.openssh.enable = true;
@ -126,7 +138,7 @@ in
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions