dot.nix/host/nix/default.nix

45 lines
733 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;
};
}