nix/nixos/containers/rdesktop/default.nix
2025-03-01 01:49:17 +01:00

38 lines
1.1 KiB
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 -"
"d /home/albert/.ssh 0700 albert albert -"
];
# Import home-manager
home-manager = {
backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs outputs desktop hostname username theme deployment_type; };
users."${username}" = import ../../../home-manager;
};
services.xrdp = {
enable = true;
openFirewall = true;
audio = {
enable = true;
package = pkgs.pulseaudio-module-xrdp;
};
};
}