2025-04-21 14:21:37 +08:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
|
|
{ config, lib, pkgs, modulesPath, username, ... }:
|
|
|
|
|
|
|
|
|
|
|
|
{
|
2025-04-21 22:20:13 +08:00
|
|
|
|
|
|
|
|
|
|
# set hdmi audio default device
|
|
|
|
|
|
hardware.pulseaudio = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
support32Bit = true;
|
|
|
|
|
|
extraConfig = "set-card-profile 1 output:alsa_output.pci-0000_00_1f.3.hdmi-stereo";
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs;[
|
|
|
|
|
|
# audio control software
|
|
|
|
|
|
pamixer
|
|
|
|
|
|
];
|
|
|
|
|
|
|
2025-04-21 14:21:37 +08:00
|
|
|
|
fileSystems."/home/${username}/tmp" =
|
|
|
|
|
|
{
|
|
|
|
|
|
device = "none";
|
|
|
|
|
|
fsType = "tmpfs";
|
|
|
|
|
|
options = [ "uid=1000" "gid=100" "defaults" "size=8G" "mode=755" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/tmp" =
|
|
|
|
|
|
{
|
|
|
|
|
|
device = "tmpfs";
|
|
|
|
|
|
fsType = "tmpfs";
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
swapDevices = [{
|
|
|
|
|
|
device = "/var/swapfile";
|
|
|
|
|
|
size = 16 * 1024;
|
|
|
|
|
|
}];
|
|
|
|
|
|
}
|