dotfiles/nixos/physical/fractal.nix

37 lines
958 B
Nix
Raw Normal View History

2016-01-28 02:59:31 +01:00
{ config, lib, pkgs, ... }:
2021-05-29 17:22:27 +02:00
let sources = import ../../nix/sources.nix;
2021-05-29 18:05:31 +02:00
in {
imports = [ ./. "${sources.nixos-hardware}/common/cpu/intel" ];
2016-01-28 02:59:31 +01:00
2021-05-29 18:05:31 +02:00
boot.initrd.availableKernelModules =
[ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
2016-01-28 02:59:31 +01:00
# 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
2021-05-29 18:05:31 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/ba95c638-f243-48ee-ae81-0c70884e7e74";
fsType = "ext4";
options = [ "defaults" "relatime" "discard" ];
};
2016-01-28 02:59:31 +01:00
2021-05-29 18:05:31 +02:00
swapDevices = [{ device = "/dev/disk/by-label/nixos-swap"; }];
fileSystems."/data" = {
device = "frumar-new";
fsType = "zfs";
};
2020-05-21 17:39:38 +02:00
2021-05-29 18:05:31 +02:00
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
}