Add bfl-rdesktop
This commit is contained in:
parent
61d59a3318
commit
8c525d2124
7 changed files with 47 additions and 4 deletions
home-manager/hosts/bfl-rdesktop/desktops
nixos
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
22
nixos/containers/bfl-rdesktop/default.nix
Normal file
22
nixos/containers/bfl-rdesktop/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
15
nixos/containers/bfl-rdesktop/mounts.nix
Normal file
15
nixos/containers/bfl-rdesktop/mounts.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,7 +8,6 @@
|
||||||
../../common/software/cli/scripts.nix
|
../../common/software/cli/scripts.nix
|
||||||
../../common/services/tailscale-autoconnect.nix
|
../../common/services/tailscale-autoconnect.nix
|
||||||
../../common/services/syncthing.nix
|
../../common/services/syncthing.nix
|
||||||
../../users/jared/default.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-module-xrdp ];
|
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-module-xrdp ];
|
||||||
|
|
|
@ -4,7 +4,7 @@ let
|
||||||
in {
|
in {
|
||||||
|
|
||||||
containers = {
|
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
|
# Networking config
|
||||||
|
@ -24,7 +24,5 @@ in {
|
||||||
iptables -A FORWARD -o nix-br0 -j ACCEPT
|
iptables -A FORWARD -o nix-br0 -j ACCEPT
|
||||||
iptables -A FORWARD -i nix-br0 -j ACCEPT
|
iptables -A FORWARD -i nix-br0 -j ACCEPT
|
||||||
iptables -A OUTPUT -o 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
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue