Files
nixos/hosts/desktop/configuration.nix
luochen570 81cee2d50e 修改: hosts/desktop/configuration.nix
新文件:   hosts/desktop/hardware-configuration.nix
2026-03-02 16:34:23 +08:00

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;
};
}