37 lines
846 B
Nix
37 lines
846 B
Nix
# Configuration file local to this node
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
./remote-unlock.nix
|
|
];
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.timeout = 20;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "cariacou";
|
|
|
|
deuxfleurs.network_interface = "eno1";
|
|
deuxfleurs.lan_ip = "192.168.1.21";
|
|
deuxfleurs.ipv6 = "2001:910:1204:1::21";
|
|
|
|
deuxfleurs.cluster_ip = "10.14.1.1";
|
|
deuxfleurs.is_raft_server = true;
|
|
|
|
# experimental: nomad as root, to enable exec driver
|
|
services.nomad.dropPrivileges = false;
|
|
services.nomad.settings.client.host_volume = {
|
|
"nix-store" = {
|
|
path = "/nix";
|
|
read_only = true;
|
|
};
|
|
"nix-current-system-bin" = {
|
|
path = "/run/current-system/sw/bin";
|
|
read_only = true;
|
|
};
|
|
};
|
|
}
|