system/system/machine/home/default.nix

52 lines
959 B
Nix

{ config, pkgs, ... }:
let
secrets = import ../../../secrets.nix;
in
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
boot = {
# Use the GRUB 2 boot loader.
loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = with config.boot.kernelPackages; [
rtl88x2bu
];
};
networking = {
hostName = "home"; # Define your hostname.
inherit (secrets.networking) extraHosts;
interfaces = {
enp3s0.useDHCP = true;
wlp11s0f3u2.useDHCP = true;
};
};
services.xserver = {
xrandrHeads = [
{
output = "DisplayPort-1";
primary = true;
}
{
output = "HDMI-A-0";
monitorConfig = ''
Option "Rotate" "right"
Option "LeftOf" "DisplayPort-1"
'';
}
];
};
}