diff options
| author | Mel <einebeere@gmail.com> | 2024-11-04 03:26:19 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-11-04 03:26:19 +0100 |
| commit | 9a52eff1c92d63ea7309a4b0768f572973b5a6e6 (patch) | |
| tree | fe565a90381c7716ba093b4ba11b432f8b0494eb /modules/common.nix | |
| parent | 2fc26761a1e93e6212845ebd005eab71da704d6e (diff) | |
| download | network-9a52eff1c92d63ea7309a4b0768f572973b5a6e6.tar.zst network-9a52eff1c92d63ea7309a4b0768f572973b5a6e6.zip | |
Add basic renard server config
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules/common.nix')
| -rw-r--r-- | modules/common.nix | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/modules/common.nix b/modules/common.nix index f035db5..2f2b141 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -1,4 +1,4 @@ -{ me, config, lib, pkgs, ... }: +{ me, util, config, lib, pkgs, ... }: { imports = [ @@ -9,8 +9,25 @@ ]; boot.kernelPackages = pkgs.linuxPackages_latest; + + + users.motd = '' + +/^ /^ +\ ' ' 7 < Hi, I'm ${util.titleCase me} +/ \ + + ''; - networking.hostName = me; + networking = { + hostName = me; + + firewall = { + enable = true; + allowedTCPPorts = [ 80 443 ]; + trustedInterfaces = [ "tailscale0" ]; + }; + }; services.envfs.enable = true; virtualisation.libvirtd.enable = true; |
