31 lines
755 B
Nix
31 lines
755 B
Nix
{ ... }:
|
|
{
|
|
# 可在此合并由 nixos-generate-config 生成的机器专属配置:
|
|
# 磁盘布局、引导加载器、文件系统、硬件选项等。
|
|
imports = [
|
|
../../modules/drivers/nvidia.nix
|
|
../../modules/drivers/amdgpu.nix
|
|
];
|
|
# Bootloader.
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
services.printing.enable = true;
|
|
|
|
# Enable sound with pipewire.
|
|
services.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
# If you want to use JACK applications, uncomment this
|
|
#jack.enable = true;
|
|
};
|
|
|
|
|
|
}
|