57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usbhid" "sd_mod" "sr_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
fileSystems."/" =
|
|
{ device = "server2/root";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var" =
|
|
{ device = "server2/root/var";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix" =
|
|
{ device = "server2/root/nix";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix/store" =
|
|
{ device = "server2/root/nix/store";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix/var" =
|
|
{ device = "server2/root/nix/var";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/boot" =
|
|
{ device = "/dev/disk/by-uuid/29BF-1E56";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.version = 2;
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
networking.hostName = "server2"; # Define your hostname.
|
|
networking.hostId = "52525252";
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wget vim git screen
|
|
];
|
|
#nix.registry.zentralwerk-network.flake = "git+https://gitea.c3d2.de/zentralwerk/network.git?ref=nix";
|
|
services.openssh.enable = true;
|
|
services.openssh.permitRootLogin = "yes";
|
|
}
|