nixos-config/machines/cray/configuration.nix

36 lines
873 B
Nix
Raw Normal View History

2022-12-15 14:29:31 +01:00
{ pkgs, config, ... }:
2022-01-24 22:40:22 +01:00
{
2022-01-25 01:13:49 +01:00
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
2024-02-03 22:47:03 +01:00
./tunnel-backbone.nix
./tunnel-cccda.nix
../../roles/all.nix
../../modules/luks.nix
../../modules/grub.nix
2022-01-25 01:13:49 +01:00
];
2022-01-24 22:40:22 +01:00
2022-02-16 20:45:12 +01:00
services.xserver.videoDrivers = [ "amdgpu" ];
2022-01-26 20:46:10 +01:00
time.hardwareClockInLocalTime = true; #Be compatible with Windows Dualboot
2022-02-23 23:42:42 +01:00
2022-12-15 14:29:31 +01:00
networking.useNetworkd = true;
2022-01-24 22:40:22 +01:00
networking.useDHCP = false;
2022-01-25 01:31:56 +01:00
networking.hostName = "cray"; # Define your hostname.
2022-02-14 21:50:52 +01:00
networking.interfaces.enp4s0.useDHCP = true;
networking.interfaces.enp4s0.wakeOnLan.enable = true;
2022-01-24 22:40:22 +01:00
2022-01-25 01:31:56 +01:00
# Enable CUPS
2022-01-24 22:40:22 +01:00
services.printing.enable = true;
2022-01-26 20:45:40 +01:00
services.printing.drivers = with pkgs; [ splix ];
2022-01-24 22:40:22 +01:00
2022-08-25 23:47:46 +02:00
# AMD OpenGL Support
hardware.opengl.extraPackages = with pkgs; [
2024-11-19 22:27:00 +01:00
rocmPackages.clr.icd
2022-08-25 23:47:46 +02:00
];
2022-01-24 22:40:22 +01:00
system.stateVersion = "21.11"; # Did you read the comment?
}