stockholm/makefu/1systems/cake/config.nix

54 lines
1.5 KiB
Nix
Raw Normal View History

2017-10-03 13:42:42 +00:00
{ config, lib, pkgs, ... }:
2017-10-01 12:01:48 +00:00
{
2017-10-01 18:12:06 +00:00
imports = [
<stockholm/makefu>
2017-10-03 13:42:42 +00:00
<stockholm/makefu/2configs/tools/core.nix>
2017-10-01 18:12:06 +00:00
# configure your hw:
# <stockholm/makefu/2configs/save-diskspace.nix>
];
krebs = {
enable = true;
tinc.retiolum.enable = true;
build.host = config.krebs.hosts.cake;
};
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["cma=32M" "console=ttyS0,115200n8" "console=tty0" ];
programs.info.enable = false;
programs.man.enable = false;
services.nixosManual.enable = false;
2017-10-03 13:42:42 +00:00
boot.tmpOnTmpfs = lib.mkForce false;
2017-11-15 11:43:09 +00:00
sound.enable = false;
2017-10-01 18:12:06 +00:00
2017-10-07 09:29:04 +00:00
hardware.enableRedistributableFirmware = true;
2017-10-08 20:21:16 +00:00
hardware.firmware = [
(pkgs.stdenv.mkDerivation {
name = "broadcom-rpi3-rest";
src = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/54bab3d/brcm80211/brcm/brcmfmac43430-sdio.txt";
sha256 = "19bmdd7w0xzybfassn7x4rb30l70vynnw3c80nlapna2k57xwbw7";
};
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/lib/firmware/brcm
cp $src $out/lib/firmware/brcm/brcmfmac43430-sdio.txt
'';
})
];
2017-10-07 09:29:04 +00:00
networking.wireless.enable = true;
2017-10-01 18:12:06 +00:00
# File systems configuration for using the installer's partition layout
fileSystems = {
"/boot" = {
device = "/dev/disk/by-label/NIXOS_BOOT";
fsType = "vfat";
2017-10-01 12:01:48 +00:00
};
2017-10-01 18:12:06 +00:00
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
2017-10-01 12:01:48 +00:00
};
2017-10-01 18:12:06 +00:00
};
}