nix/nixos/containers/rdesktop/default.nix

34 lines
1,014 B
Nix

{ deployment_type, inputs, outputs, theme, hostname, pkgs, desktop, username, ... }: {
imports = [
../../users/${username}
../../common/desktops/${desktop}
../../common/packages
../../common/modules/fonts.nix
../../common/services/gnupg-agent.nix
../../common/software/cli/scripts.nix
../../common/services/tailscale-autoconnect.nix
../../common/services/syncthing/default.nix
];
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-module-xrdp ];
systemd.tmpfiles.rules = [
# Creates the folder for the /share folder in Guacamole
# See ./mounts.nix
"d /tmp/guacamole 0755 albert albert -"
];
# Import home-manager
home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username theme deployment_type; };
home-manager.users."${username}" = import ../../../home-manager;
services.xrdp = {
enable = true;
openFirewall = true;
audio = {
enable = true;
package = pkgs.pulseaudio-module-xrdp;
};
};
}