added rdp servers and clients to both devices

This commit is contained in:
Nickiel12 2023-10-08 18:01:51 -07:00
parent d5de5c9ad9
commit ae5c5d1d2b
3 changed files with 28 additions and 10 deletions

View file

@ -3,19 +3,24 @@
{ {
imports = [ imports = [
(import ./../../modules/xrdp.nix)
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
networking.hosts = { networking = {
"10.0.0.183" = [ "headscale.nickiel.net" ]; firewall = {
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ]; checkReversePath = "loose";
}; trustedInterfaces = [ "tailscale0" ];
networking.firewall = { allowedUDPPorts = [ config.services.tailscale.port ];
checkReversePath = "loose"; };
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
nameservers = ["10.0.0.183" "1.1.1.1"];
hosts = {
# "10.0.0.183" = [ "headscale.nickiel.net" ];
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
};
};
services = { services = {
tailscale.enable = true; tailscale.enable = true;
sshd.enable = true; sshd.enable = true;

View file

@ -1,6 +1,7 @@
{ config, ... }: { config, ... }:
{ imports = [ { imports = [
(import ./../../modules/xrdp.nix)
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -18,7 +19,6 @@
}; };
time.hardwareClockInLocalTime = true; time.hardwareClockInLocalTime = true;
boot.loader = { efi = { boot.loader = { efi = {
canTouchEfiVariables = true; efiSysMountPoint = "/boot"; canTouchEfiVariables = true; efiSysMountPoint = "/boot";
}; };

13
modules/xrdp.nix Normal file
View file

@ -0,0 +1,13 @@
{config, lib, pkgs, ...}:
{
environment.systemPackages = [
pkgs.freerdp
];
services.xrdp = {
enable = true;
defaultWindowManager = "startplasma-x11";
openFirewall = true;
};
}