Going to bed.
This commit is contained in:
parent
cfc020613e
commit
5d1fded15c
4 changed files with 20 additions and 10 deletions
|
@ -75,6 +75,8 @@
|
||||||
"albert@backups-rpi4" = libx.mkHome { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; };
|
"albert@backups-rpi4" = libx.mkHome { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; };
|
||||||
"albert@piaware-rpi4" = libx.mkHome { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };
|
"albert@piaware-rpi4" = libx.mkHome { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };
|
||||||
"albert@quitman-rpi4" = libx.mkHome { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; };
|
"albert@quitman-rpi4" = libx.mkHome { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; };
|
||||||
|
# Containers
|
||||||
|
"albert@nixos-rdesktop" = libx.mkHome { hostname = "nixos-rdesktop"; };
|
||||||
};
|
};
|
||||||
deploy.nodes = {
|
deploy.nodes = {
|
||||||
osaka-linode-01 = libx.deploy { hostname = "osaka-linode-01"; };
|
osaka-linode-01 = libx.deploy { hostname = "osaka-linode-01"; };
|
||||||
|
|
|
@ -47,8 +47,9 @@
|
||||||
}: {
|
}: {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = false;
|
privateNetwork = false;
|
||||||
specialArgs = { inherit pkgs pkgs-unstable container username desktop theme system repo unfree; };
|
specialArgs = { inherit pkgs pkgs-unstable container username desktop theme system repo unfree stateVersion; };
|
||||||
config = { lib, config, pkgs, pkgs-unstable, container, username, desktop, theme, system, repo, ... }: {
|
config = { lib, config, pkgs, pkgs-unstable, container, username, desktop, theme, system, repo, stateVersion, ... }: {
|
||||||
|
system.stateVersion = stateVersion;
|
||||||
imports = [ ../nixos/containers/${container} ];
|
imports = [ ../nixos/containers/${container} ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
useDHCP = lib.mkDefault true;
|
useDHCP = lib.mkDefault true;
|
||||||
enableIPv6 = false;
|
enableIPv6 = lib.mkForce false;
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ ];
|
allowedTCPPorts = [ ];
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,25 @@
|
||||||
{ pkgs, username, stateVersion, desktop, ... }: {
|
{ pkgs, username, stateVersion, desktop, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
../../common/desktops/${desktop}
|
# ../../common/desktops/${desktop}
|
||||||
../../users/${username}
|
../../users/${username}
|
||||||
|
../../common/modules/nixos.nix
|
||||||
|
../../common/modules/networking.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall.allowedTCPPorts = [ 3389 ];
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 3390 ];
|
desktopManager = {
|
||||||
};
|
xterm.enable = false;
|
||||||
|
xfce.enable = true;
|
||||||
|
};
|
||||||
|
displayManager.defaultSession = "xfce";
|
||||||
|
};
|
||||||
|
|
||||||
services.xrdp = {
|
services.xrdp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
port = 3390;
|
defaultWindowManager = "xfce4-session";
|
||||||
defaultWindowManager = "${pkgs.xfce.xfce4-session}/bin/xfce4-session";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue