nixos-config/machines/cray/configuration.nix
2024-11-19 22:27:28 +01:00

36 lines
873 B
Nix

{ pkgs, config, ... }:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./tunnel-backbone.nix
./tunnel-cccda.nix
../../roles/all.nix
../../modules/luks.nix
../../modules/grub.nix
];
services.xserver.videoDrivers = [ "amdgpu" ];
time.hardwareClockInLocalTime = true; #Be compatible with Windows Dualboot
networking.useNetworkd = true;
networking.useDHCP = false;
networking.hostName = "cray"; # Define your hostname.
networking.interfaces.enp4s0.useDHCP = true;
networking.interfaces.enp4s0.wakeOnLan.enable = true;
# Enable CUPS
services.printing.enable = true;
services.printing.drivers = with pkgs; [ splix ];
# AMD OpenGL Support
hardware.opengl.extraPackages = with pkgs; [
rocmPackages.clr.icd
];
system.stateVersion = "21.11"; # Did you read the comment?
}