Add bfl-rdesktop

This commit is contained in:
albert 2025-01-13 23:24:57 +01:00
parent 61d59a3318
commit 8c525d2124
Signed by: albert
GPG key ID: 3895DD267CA11BA9
7 changed files with 47 additions and 4 deletions
home-manager/hosts/bfl-rdesktop/desktops
nixos
containers
hosts/nuc-server

View file

@ -0,0 +1,3 @@
{
}

View file

@ -0,0 +1,3 @@
{
}

View file

@ -0,0 +1,3 @@
{
}

View file

@ -0,0 +1,22 @@
{ pkgs, desktop, username, ... }: {
imports = [
../../users/${username}
../../users/jared
../../common/desktops/${desktop}
../../common/packages
../../common/modules/fonts.nix
../../common/software/cli/scripts.nix
];
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-module-xrdp ];
services.xrdp = {
enable = true;
openFirewall = true;
audio = {
enable = true;
package = pkgs.pulseaudio-module-xrdp;
};
};
}

View file

@ -0,0 +1,15 @@
{
"/etc/nixos/git" = {
hostPath = "/etc/nixos/git";
mountPoint = "/etc/nixos/git";
isReadOnly = false;
};
"/home/albert/.ssh/id_ed25519" = {
mountPoint = "/home/albert/.ssh/id_ed25519";
isReadOnly = true;
};
"/home/albert/.ssh/id_ed25519.pub" = {
mountPoint = "/home/albert/.ssh/id_ed25519.pub";
isReadOnly = true;
};
}

View file

@ -8,7 +8,6 @@
../../common/software/cli/scripts.nix
../../common/services/tailscale-autoconnect.nix
../../common/services/syncthing.nix
../../users/jared/default.nix
];
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-module-xrdp ];

View file

@ -4,7 +4,7 @@ let
in {
containers = {
rdesktop = libx.mkContainer { hostname = "rdesktop"; ip = "2"; unfree = true; desktop = "gnome"; };
rdesktop = libx.mkContainer { hostname = "bfl-rdesktop"; ip = "2"; unfree = true; desktop = "gnome"; };
};
# Networking config
@ -24,7 +24,5 @@ in {
iptables -A FORWARD -o nix-br0 -j ACCEPT
iptables -A FORWARD -i nix-br0 -j ACCEPT
iptables -A OUTPUT -o nix-br0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 ! -d 192.168.2.0/24 -j MASQUERADE
'';
}