mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ self, lib, minimal, ... }:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./disk-config.nix
|
|
|
|
"${self}/modules/nixos/optional/systemd-networkd-server.nix"
|
|
];
|
|
|
|
node.lockFromBootstrapping = lib.mkForce false;
|
|
|
|
topology.self = {
|
|
icon = "devices.cloud-server";
|
|
};
|
|
swarselmodules.server.nginx = false;
|
|
|
|
swarselsystems = {
|
|
flakePath = "/root/.dotfiles";
|
|
info = "VM.Standard.A1.Flex, 4 vCPUs, 24GB RAM";
|
|
isImpermanence = true;
|
|
isSecureBoot = false;
|
|
isCrypted = true;
|
|
isSwap = false;
|
|
rootDisk = "/dev/sda";
|
|
isBtrfs = true;
|
|
isNixos = true;
|
|
isLinux = true;
|
|
isCloud = true;
|
|
server = {
|
|
garage = {
|
|
data_dir = {
|
|
capacity = "150G";
|
|
path = "/var/lib/garage/data";
|
|
};
|
|
keys = {
|
|
nixos = [
|
|
"attic"
|
|
];
|
|
};
|
|
buckets = [
|
|
"attic"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
} // lib.optionalAttrs (!minimal) {
|
|
swarselprofiles = {
|
|
server = true;
|
|
};
|
|
|
|
swarselmodules.server = {
|
|
ssh-builder = lib.mkDefault true;
|
|
postgresql = lib.mkDefault true;
|
|
attic = lib.mkDefault true;
|
|
garage = lib.mkDefault true;
|
|
};
|
|
|
|
}
|