Restructured alexandria
This commit is contained in:
parent
629f9196e2
commit
b3f9a791ba
8 changed files with 76 additions and 118 deletions
34
hosts/servers/alexandria.nix
Normal file
34
hosts/servers/alexandria.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ config, pkgs, lib, ...}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Host-specific imports
|
||||
.alexandria/hardware-configuration.nix
|
||||
.alexandria/hosted-services.nix
|
||||
# Host-common imports
|
||||
../common/networking.nix
|
||||
../common/packages.nix
|
||||
../common/services.nix
|
||||
../common/locale.nix
|
||||
../common/users.nix
|
||||
../common/boot.nix
|
||||
../common/nix.nix
|
||||
];
|
||||
|
||||
users.users.user.extraGroups = [ "docker" ];
|
||||
|
||||
swapDevices = [ { device = "/swapfile"; size = 8192; } ];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_hardened;
|
||||
|
||||
networking = {
|
||||
hostName = "alexandria";
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
9666
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue