91 lines
2.0 KiB
Nix
91 lines
2.0 KiB
Nix
{ inputs, config, ... }:
|
|
let
|
|
sshKeys = import ../ssh_keys.nix;
|
|
peers = import ../modules/malobeo/peers.nix;
|
|
hosts = import ../hosts.nix {};
|
|
in
|
|
{
|
|
networking.hostName = "albert";
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
sops.secrets.wg_private = {};
|
|
|
|
imports =
|
|
[ # Include the results of the hardware scan.
|
|
#./hardware-configuration.nix
|
|
../modules/sshd.nix
|
|
../modules/minimal_tools.nix
|
|
../modules/autoupdate.nix
|
|
inputs.self.nixosModules.malobeo.vpn
|
|
inputs.self.nixosModules.malobeo.initssh
|
|
inputs.self.nixosModules.malobeo.disko
|
|
inputs.self.nixosModules.malobeo.metrics
|
|
inputs.self.nixosModules.malobeo.users
|
|
inputs.self.nixosModules.malobeo.backup
|
|
];
|
|
|
|
virtualisation.vmVariantWithDisko = {
|
|
virtualisation = {
|
|
memorySize = 4096;
|
|
cores = 3;
|
|
};
|
|
};
|
|
|
|
virtualisation.vmVariant.virtualisation.graphics = false;
|
|
|
|
malobeo.metrics = {
|
|
enable = true;
|
|
enablePromtail = true;
|
|
logNginx = true;
|
|
lokiHost = hosts.malobeo.hosts.overwatch.network.address;
|
|
};
|
|
|
|
malobeo.autoUpdate = {
|
|
enable = true;
|
|
url = "https://hydra.malobeo.org";
|
|
project = "malobeo";
|
|
jobset = "infrastructure";
|
|
cacheurl = "https://cache.malobeo.org";
|
|
};
|
|
|
|
malobeo.users = {
|
|
malobeo = false;
|
|
admin = true;
|
|
backup = true;
|
|
};
|
|
|
|
malobeo.disks = {
|
|
enable = true;
|
|
hostId = "a3c31011";
|
|
root = {
|
|
disk0 = "disk/by-id/[insert-name-here]";
|
|
};
|
|
};
|
|
|
|
malobeo.initssh = {
|
|
enable = true;
|
|
authorizedKeys = sshKeys.admins;
|
|
ethernetDrivers = ["r8169"];
|
|
};
|
|
|
|
services.malobeo.vpn = {
|
|
enable = true;
|
|
name = "albert";
|
|
privateKeyFile = config.sops.secrets.wg_private.path;
|
|
};
|
|
|
|
networking = {
|
|
firewall = {
|
|
allowedTCPPorts = [ 80 443 ];
|
|
};
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
services.acpid.enable = true;
|
|
networking.networkmanager.enable = true;
|
|
time.timeZone = "Europe/Berlin";
|
|
system.stateVersion = "26.05"; # Do.. Not.. Change..
|
|
}
|
|
|