mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
59 lines
1,015 B
Nix
59 lines
1,015 B
Nix
{ self, lib, minimal, ... }:
|
|
{
|
|
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./disk-config.nix
|
|
|
|
"${self}/modules/nixos/optional/systemd-networkd-server.nix"
|
|
];
|
|
|
|
topology.self = {
|
|
interfaces = {
|
|
"eth1" = { };
|
|
"eth2" = { };
|
|
"eth3" = { };
|
|
"eth4" = { };
|
|
"eth5" = { };
|
|
"eth6" = { };
|
|
};
|
|
};
|
|
|
|
swarselsystems = {
|
|
info = "HUNSN RM02, 8GB RAM";
|
|
flakePath = "/root/.dotfiles";
|
|
isImpermanence = true;
|
|
isSecureBoot = false;
|
|
isCrypted = true;
|
|
isBtrfs = true;
|
|
isLinux = true;
|
|
isNixos = true;
|
|
rootDisk = "/dev/sda";
|
|
swapSize = "8G";
|
|
networkKernelModules = [ "igb" ];
|
|
server = {
|
|
wireguard.interfaces = {
|
|
wgHome = {
|
|
isServer = true;
|
|
peers = [
|
|
"winters"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
} // lib.optionalAttrs (!minimal) {
|
|
|
|
swarselprofiles = {
|
|
server = true;
|
|
router = false;
|
|
};
|
|
|
|
swarselmodules = {
|
|
server = {
|
|
wireguard = true;
|
|
};
|
|
};
|
|
|
|
}
|