nix/nixos/containers/rdesktop/default.nix

30 lines
779 B
Nix

{ pkgs, desktop, username, lib, ... }: {
imports = [
../../users/${username}
../../common/desktops/${desktop}
../../common/packages
../../common/modules/fonts.nix
../../common/services/gnupg-agent.nix
../../common/software/cli/clean-hm.nix
../../common/services/tailscale-autoconnect.nix
];
hardware.pulseaudio.enable = lib.mkDefault true;
hardware.pulseaudio.support32Bit = lib.mkDefault true;
services.pipewire = {
enable = lib.mkDefault false;
alsa.enable = lib.mkDefault false;
alsa.support32Bit = lib.mkDefault false;
pulse.enable = lib.mkDefault false;
};
services.xrdp = {
enable = true;
openFirewall = true;
audio = {
enable = true;
package = pkgs.pulseaudio-module-xrdp;
};
};
}