stockholm/lass/1systems/prism/physical.nix

72 lines
1.5 KiB
Nix
Raw Normal View History

2018-05-12 13:51:24 +00:00
{ config, lib, pkgs, ... }:
2018-11-10 17:56:25 +00:00
2018-05-12 13:51:24 +00:00
{
2018-11-10 17:56:25 +00:00
2018-05-12 13:51:24 +00:00
imports = [
./config.nix
2018-11-10 17:56:25 +00:00
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
2018-05-12 13:51:24 +00:00
];
2018-11-10 17:56:25 +00:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" ];
boot.kernelModules = [ "kvm-intel" ];
fileSystems."/" = {
device = "rpool/root/nixos";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/d155d6ff-8e89-4876-a9e7-d1b7ba6a4804";
fsType = "ext4";
};
fileSystems."/srv/http" = {
device = "tank/srv-http";
fsType = "zfs";
};
2018-11-30 03:35:39 +00:00
fileSystems."/var/download" = {
device = "tank/download";
fsType = "zfs";
};
2018-11-10 17:56:25 +00:00
fileSystems."/var/lib/containers" = {
device = "tank/containers";
fsType = "zfs";
};
fileSystems."/home" = {
device = "tank/home";
fsType = "zfs";
};
2019-01-04 15:35:09 +00:00
fileSystems."/var/lib/nextcloud" = {
device = "tank/nextcloud";
fsType = "zfs";
};
2019-01-04 16:25:50 +00:00
fileSystems."/var/lib/libvirt" = {
device = "tank/libvirt";
fsType = "zfs";
};
2018-11-10 17:56:25 +00:00
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" ];
boot.kernelParams = [ "net.ifnames=0" ];
networking = {
hostId = "2283aaae";
defaultGateway = "95.216.1.129";
# Use google's public DNS server
nameservers = [ "8.8.8.8" ];
interfaces.eth0 = {
ipAddress = "95.216.1.150";
prefixLength = 26;
};
};
2018-05-12 13:51:24 +00:00
}