38 lines
870 B
Nix
38 lines
870 B
Nix
# 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, ... }:
|
||
|
||
{
|
||
|
||
# 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
|
||
];
|
||
|
||
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;
|
||
}];
|
||
}
|