Serenity/modules/hosts/hades/configuration.nix
2026-09-23 18:22:35 +00:00

76 lines
1.6 KiB
Nix

{ self, inputs, ... }:
{
# host module declaration
flake.nixosModules.hades =
{ pkgs, lib, ... }:
{
# other modules to import
imports = [ ];
# set hostname
networking.hostName = "hades";
# specify kernel to use - disable if wanting zfs support
#boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
# bootloader settings
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# supported filesystems at boot
boot.supportedFilesystems = [
"vfat"
"ext4"
#"ntfs"
];
# enable printing support
services.printing.enable = true;
# fstrim for ssd
services.fstrim.enable = true;
# enable firefox
programs.firefox.enable = true;
# other packages to include
environment.systemPackages = with pkgs; [
# packages for hades peripherals
#input-remapper
#razergenie
#openrazer-daemon
#openrgb-with-all-plugins
];
# peripherals for hades
hardware.ckb-next.enable = true;
# amd radeon gpu drivers and software
# https://nixos.wiki/wiki/AMD_GPU
boot = {
# load amdgpu driver pre boot
initrd.kernelModules = [ "amdgpu" ];
#exposes gpu driver
kernelModules = [
"amdgpu"
"kvm-amd"
];
};
hardware = {
# discrete graphics support
graphics.enable = true;
# fixes early video issues
amdgpu.initrd.enable = true;
};
};
}