1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-14 15:09:41 +01:00
nixos-hardware/inversepath/usbarmory/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

2017-12-24 18:21:43 +01:00
{ config, lib, pkgs, ... }:
2016-02-10 17:41:46 +01:00
{
boot = {
2017-12-24 18:21:43 +01:00
extraModprobeConfig = lib.mkDefault ''
options g_ether use_eem=0 dev_addr=1a:55:89:a2:69:41 host_addr=1a:55:89:a2:69:42
'';
2016-02-10 17:41:46 +01:00
kernelModules = [ "ledtrig_heartbeat" "ci_hdrc_imx" "g_ether" ];
2017-12-24 18:21:43 +01:00
kernelPackages = lib.mkDefault pkgs.linuxPackages_usbarmory;
kernelParams = [ "console=ttymxc0,115200" ];
loader.generic-extlinux-compatible.enable = lib.mkDefault true;
2016-02-10 17:41:46 +01:00
};
2017-12-24 18:21:43 +01:00
2016-02-10 17:41:46 +01:00
networking = {
defaultGateway = "172.16.0.1";
2017-12-24 18:21:43 +01:00
firewall.enable = lib.mkDefault false;
hostName = "usbarmory";
interfaces.usb0.ip4 = [
{ address = "172.16.0.2"; prefixLength = 24; }
];
2016-02-10 17:41:46 +01:00
nameservers = [ "8.8.8.8" ];
};
2017-12-24 18:21:43 +01:00
nix = {
binaryCaches = [ "http://nixos-arm.dezgeg.me/channel" ];
binaryCachePublicKeys = [ "nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%" ];
};
nixpkgs.overlays = [(final: previous: {
linuxPackages_usbarmory = final.recurseIntoAttrs
(final.linuxPackagesFor (import ./kernel.nix {
inherit (final) stdenv buildLinux fetchurl;
}));
})];
sound.enable = lib.mkDefault false;
services = {
openssh.enable = lib.mkDefault true;
openssh.permitRootLogin = lib.mkDefault "without-password";
};
2016-02-10 17:41:46 +01:00
}