nixos-config/hosts/zbox.nix

91 lines
1.6 KiB
Nix
Raw Normal View History

2019-12-25 15:20:36 -08:00
{ config, pkgs, ... }:
let
hostname = "zbox";
in {
2020-06-06 19:24:59 -07:00
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2019-12-25 15:20:36 -08:00
imports = [
../defaults.nix
../hardware-configuration.nix
];
environment.systemPackages = with pkgs; [
2020-06-06 19:24:59 -07:00
androidenv.androidPkgs_9_0.platform-tools
android-studio
2020-06-25 20:46:18 -07:00
dnsproxy
2019-12-25 15:20:36 -08:00
glxinfo
2020-06-06 19:24:59 -07:00
hll2380dw-cups
nodejs
signal-desktop
2020-06-25 20:46:18 -07:00
thunderbird
2020-06-06 19:24:59 -07:00
usbutils
2019-12-25 15:20:36 -08:00
];
2020-06-06 19:24:59 -07:00
fudo.common = {
profile = "desktop";
site = "seattle";
2020-07-16 14:41:06 -07:00
enable-gui = true;
2020-06-06 19:24:59 -07:00
};
fudo.slynk = {
enable = true;
};
2019-12-25 15:20:36 -08:00
hardware.cpu.intel.updateMicrocode = true;
2020-06-06 19:24:59 -07:00
programs = {
adb.enable = true;
bash.enableCompletion = true;
};
2019-12-25 15:20:36 -08:00
services.xserver = {
videoDrivers = ["nvidia"];
2020-06-06 19:24:59 -07:00
# displayManager.gdm.wayland = false;
2019-12-25 15:20:36 -08:00
};
hardware.opengl.driSupport32Bit = true;
2020-06-06 19:24:59 -07:00
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
2019-12-25 15:20:36 -08:00
hardware.opengl.driSupport = true;
2020-06-06 19:24:59 -07:00
hardware.pulseaudio.support32Bit = true;
networking = {
hostName = hostname;
macvlans = {
intif0 = {
interface = "eno1";
mode = "bridge";
};
};
interfaces = {
eno1.useDHCP = false;
intif0 = {
macAddress = "02:dd:80:52:83:9b";
useDHCP = false;
ipv4.addresses = [
{
address = "10.0.0.110";
prefixLength = 24;
}
];
};
};
};
2019-12-25 15:20:36 -08:00
hardware.bluetooth.enable = true;
2020-06-06 19:24:59 -07:00
users.users.niten = {
extraGroups = ["adbusers"];
};
virtualisation.lxd.enable = true;
2019-12-25 15:20:36 -08:00
}