mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
added rdp servers and clients to both devices
This commit is contained in:
parent
d5de5c9ad9
commit
ae5c5d1d2b
3 changed files with 28 additions and 10 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
13
modules/xrdp.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{config, lib, pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.freerdp
|
||||||
|
];
|
||||||
|
|
||||||
|
services.xrdp = {
|
||||||
|
enable = true;
|
||||||
|
defaultWindowManager = "startplasma-x11";
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue