nix/nixos/containers/rdesktop/default.nix
2025-02-23 17:53:55 -08:00

36 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.nix
];
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-module-xrdp ];
# Testing fixes for home-manager
systemd.tmpfiles.rules = [
# Create parent directory first
"d /home/albert/.config/dconf 0755 albert albert -"
"d /home/albert/.config 0755 albert albert -"
"d /home/albert/.ssh 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;
};
};
}