mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 00:58:16 +00:00
37 lines
608 B
Nix
37 lines
608 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [./hardware.nix];
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
networking = {
|
|
hostName = "hephaestus";
|
|
interfaces.enp34s0 = {
|
|
useDHCP = true;
|
|
};
|
|
firewall = {
|
|
allowedUDPPorts = [
|
|
41641 # tailscale
|
|
];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
sshd.enable = true;
|
|
tailscale.enable = true;
|
|
xserver.videoDrivers = ["nvidia"];
|
|
};
|
|
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
open = true;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
}
|