feat: Refactor web-servers module and move common configuration to common.nix

This commit is contained in:
Mohammad Rafiq 2025-06-12 21:35:43 +08:00
parent 7093a338f4
commit e5f942acbe
No known key found for this signature in database
7 changed files with 94 additions and 76 deletions

View file

@ -3,10 +3,10 @@
...
}:
{
imports = lib.singleton ../common.nix;
system = {
hostname = "nemesis";
mainUser.name = "rafiq";
mainUser.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n";
bootloader = "systemd-boot";
};
@ -41,16 +41,10 @@
enableSunshine = true;
};
server = {
mountHelios = true;
};
services = {
tor = {
enable = true;
client.enable = true;
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}