dotfiles/nixos/physical/fractal.nix

43 lines
988 B
Nix
Raw Normal View History

2016-01-28 02:59:31 +01:00
{ config, lib, pkgs, ... }:
2020-05-21 17:39:38 +02:00
let sources = import ../nix/sources.nix;
in
2016-01-28 02:59:31 +01:00
{
imports =
2020-05-21 17:39:38 +02:00
[ ./.
"${sources.nixos-hardware}/common/cpu/intel"
2016-01-28 02:59:31 +01:00
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
# Use the GRUB 2 boot loader.
2020-05-21 17:39:38 +02:00
boot.loader.grub = {
enable = true;
version = 2;
# Define on which hard drive you want to install Grub.
device = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAG441016B";
};
2016-01-28 02:59:31 +01:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ba95c638-f243-48ee-ae81-0c70884e7e74";
fsType = "ext4";
2016-04-30 14:03:45 +02:00
options = ["defaults" "relatime" "discard"];
2016-01-28 02:59:31 +01:00
};
swapDevices =
[ { device = "/dev/disk/by-label/nixos-swap"; }
];
2020-05-21 17:39:38 +02:00
fileSystems."/data" =
{ device = "frumar-new";
fsType = "zfs";
};
fileSystems."/data/plexmedia" =
{ device = "frumar-new/plexmedia";
fsType = "zfs";
};
2016-01-28 02:59:31 +01:00
nix.maxJobs = 4;
2020-05-21 17:39:38 +02:00
services.avahi.interfaces = [ "enp2s0" ];
2016-01-28 02:59:31 +01:00
}