45 lines
734 B
Nix
45 lines
734 B
Nix
{ modulesPath, config, pkgs, hostName, ... }:
|
|
{
|
|
## MODULES & IMPORTS ##
|
|
imports = [
|
|
# Common Modules
|
|
../../common/lxc
|
|
../../common/ssh
|
|
|
|
# Import hardware configuration.
|
|
./hardware.nix
|
|
];
|
|
|
|
|
|
## NETWORKING ##
|
|
networking.firewall = {
|
|
allowedTCPPorts = [ 22 80 443 ];
|
|
allowedUDPPorts = [ ];
|
|
};
|
|
|
|
## ENVIORMENT & PACKAGES ##
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
micro
|
|
openbox
|
|
openssh
|
|
ranger
|
|
sshfs
|
|
wget
|
|
x2goserver
|
|
];
|
|
|
|
programs.java = {
|
|
enable = true;
|
|
package = pkgs.jdk; };
|
|
|
|
environment.variables = {
|
|
HOSTNAME = hostName;
|
|
};
|
|
|
|
## VS CODE ##
|
|
programs.nix-ld = {
|
|
enable = true;
|
|
package = pkgs.nix-ld-rs;
|
|
};
|
|
}
|