network/nix/nixos-module/server/server2.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

2021-04-04 21:59:17 +02:00
{ pkgs, ... }:
{
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2021-04-08 01:49:25 +02:00
hardware.cpu.intel.updateMicrocode = true;
2021-04-04 21:59:17 +02:00
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
];
services.openssh.enable = true;
services.openssh.permitRootLogin = "yes";
}