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 = [
(import ./../../modules/xrdp.nix)
./hardware-configuration.nix
];
networking.hosts = {
"10.0.0.183" = [ "headscale.nickiel.net" ];
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
};
networking.firewall = {
networking = {
firewall = {
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 = {
tailscale.enable = true;
sshd.enable = true;

View file

@ -1,6 +1,7 @@
{ config, ... }:
{ imports = [
(import ./../../modules/xrdp.nix)
./hardware-configuration.nix
];
@ -18,7 +19,6 @@
};
time.hardwareClockInLocalTime = true;
boot.loader = { efi = {
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;
};
}