85 lines
2.1 KiB
Nix
85 lines
2.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common.nix
|
|
../../services/openssh.nix
|
|
];
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
|
kernelModules = [ "kvm-intel" ];
|
|
swraid = {
|
|
enable = true;
|
|
mdadmConf = ''
|
|
ARRAY /dev/md/ROOT metadata=1.2 UUID=acd8260f-e30f-2f3f-74f7-e51ee905a498
|
|
MAILADDR root@localhost
|
|
'';
|
|
};
|
|
#kernel.sysctl = {
|
|
# "net.ipv4.ip_forward" = true;
|
|
# "net.ipv4.conf.all.forwarding" = true;
|
|
#};
|
|
};
|
|
|
|
networking = {
|
|
hostName = "kaede";
|
|
domain = "xengi.de";
|
|
search = [ "xengi.de" ];
|
|
defaultGateway6 = {
|
|
address = "2a00:1328:e100:1::6c";
|
|
interface = "eno3";
|
|
};
|
|
defaultGateway = {
|
|
address = "217.115.0.182";
|
|
interface = "eno3";
|
|
};
|
|
interfaces.eno3 = {
|
|
ipv6.addresses = [{ address = "2a00:1328:e100:1::6d"; prefixLength = 127; }];
|
|
ipv4.addresses = [{ address = "217.115.0.183"; prefixLength = 31; }];
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/e44cfa13-868e-4d26-b3de-5a8ae92bb055";
|
|
fsType = "ext4";
|
|
options = [ "discard" "noatime" ];
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/AD5C-950B";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0022" "dmask=0022" "discard" "noatime" ];
|
|
};
|
|
};
|
|
|
|
swapDevices = [
|
|
{ device = "/dev/disk/by-uuid/e8825b01-f91e-4c4f-8916-bffeb6fac0cd"; }
|
|
{ device = "/dev/disk/by-uuid/5b53c0b9-ab57-4992-8e81-957e19c7b685"; }
|
|
];
|
|
|
|
virtualisation = {
|
|
useEFIBoot = true;
|
|
libvirtd = {
|
|
enable = true;
|
|
nss.enableGuest = true;
|
|
startDelay = 1;
|
|
onShutdown = "shutdown";
|
|
};
|
|
};
|
|
#rootDevice = "/dev/disk/by-label/nixos";
|
|
#mountHostNixStore = true;
|
|
|
|
services.openssh.banner = ''
|
|
__ __ __
|
|
/'__`\ /\ \ /'_ `\
|
|
___ /\_\L\ \\ \ \/'\ /\ \L\ \ ____
|
|
/'___\/_/_\_<_\ \ , < \/_> _ <_ /',__\
|
|
/\ \__/ /\ \L\ \\ \ \\`\ /\ \L\ \/\__, `\
|
|
\ \____\\ \____/ \ \_\ \_\ \____/\/\____/
|
|
\/____/ \/___/ \/_/\/_/\/___/ \/___/
|
|
'';
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|
|
|