mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
refactor
This commit is contained in:
parent
eb951eeaa9
commit
59ec8ef37b
4 changed files with 36 additions and 66 deletions
|
|
@ -19,36 +19,7 @@
|
|||
|
||||
defaults = { pkgs, config, lib, ... }: {
|
||||
# This module will be imported by all hosts
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
curl
|
||||
traceroute
|
||||
dnsutils
|
||||
];
|
||||
|
||||
imports = [
|
||||
"${builtins.fetchTarball "https://github.com/ryantm/agenix/archive/de96bd907d5fbc3b14fc33ad37d1b9a3cb15edc6.tar.gz"}/modules/age.nix" # main 2024-07-26
|
||||
];
|
||||
|
||||
deployment.targetHost = "${config.networking.hostName}.infra.noratrieb.dev";
|
||||
time.timeZone = "Europe/Zurich";
|
||||
users.users.root.openssh.authorizedKeys.keys = [ ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0n1ikUG9rYqobh7WpAyXrqZqxQoQ2zNJrFPj12gTpP nilsh@PC-Nils'' ];
|
||||
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
banner = "meoooooow!! 😼 :3\n";
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
};
|
||||
system.nixos.distroName = "NixOS (gay 🏳️⚧️)";
|
||||
imports = [ ./modules/default ];
|
||||
};
|
||||
|
||||
dns1 = { name, nodes, modulesPath, ... }: {
|
||||
|
|
@ -60,7 +31,6 @@
|
|||
|
||||
# The name and nodes parameters are supported in Colmena,
|
||||
# allowing you to reference configurations in other nodes.
|
||||
networking.hostName = name;
|
||||
deployment.tags = [ "dns" "us" ];
|
||||
system.stateVersion = "23.11";
|
||||
};
|
||||
|
|
@ -70,7 +40,6 @@
|
|||
./modules/dns
|
||||
];
|
||||
|
||||
networking.hostName = name;
|
||||
deployment.tags = [ "dns" "eu" ];
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
|
|
@ -123,7 +92,6 @@
|
|||
|
||||
age.secrets.docker_registry_password.file = ./secrets/docker_registry_password.age;
|
||||
|
||||
networking.hostName = name;
|
||||
deployment.tags = [ "ingress" "eu" "apps" "wg" ];
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
|
|
@ -154,7 +122,6 @@
|
|||
./modules/wg-mesh
|
||||
];
|
||||
|
||||
networking.hostName = name;
|
||||
deployment.tags = [ "eu" "apps" "wg" ];
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue