2021-11-01 21:56:32 +00:00
|
|
|
# Configuration file local to this node
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-02-25 23:00:10 +00:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./remote-unlock.nix
|
|
|
|
];
|
|
|
|
|
2021-11-18 13:38:48 +00:00
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.timeout = 20;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2021-11-02 09:15:37 +00:00
|
|
|
networking.hostName = "cariacou";
|
2021-11-01 21:56:32 +00:00
|
|
|
|
2022-02-25 16:52:17 +00:00
|
|
|
deuxfleurs.network_interface = "eno1";
|
|
|
|
deuxfleurs.lan_ip = "192.168.1.21";
|
2022-10-16 17:10:51 +00:00
|
|
|
deuxfleurs.ipv6 = "2001:910:1204:1::21";
|
2022-02-25 16:52:17 +00:00
|
|
|
|
2022-08-23 22:07:08 +00:00
|
|
|
deuxfleurs.cluster_ip = "10.14.1.1";
|
2022-02-09 11:09:49 +00:00
|
|
|
deuxfleurs.is_raft_server = true;
|
2022-11-15 22:13:55 +00:00
|
|
|
|
2022-11-16 15:52:38 +00:00
|
|
|
# ----
|
|
|
|
|
|
|
|
# experimental: config for nomad nix driver
|
2022-11-15 22:13:55 +00:00
|
|
|
services.nomad.dropPrivileges = false;
|
2022-11-16 15:28:18 +00:00
|
|
|
services.nomad.extraPackages = [
|
|
|
|
pkgs.nix
|
2022-11-16 15:52:38 +00:00
|
|
|
pkgs.git
|
2022-11-16 15:28:18 +00:00
|
|
|
];
|
|
|
|
services.nomad.extraSettingsPlugins =
|
|
|
|
let nomad_driver_nix = import ./nomad-driver-nix.nix { inherit pkgs; };
|
|
|
|
in [ nomad_driver_nix ];
|
|
|
|
# the nix driver requires flakes to be enabled
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2022-11-16 15:52:38 +00:00
|
|
|
|
|
|
|
# use our cache as additionnal substituer
|
|
|
|
nix.settings.substituers = [ "https://nix.web.deuxfleurs.fr" ];
|
|
|
|
nix.settings.trusted-public-keys = [ "nix.web.deuxfleurs.fr:eTGL6kvaQn6cDR/F9lDYUIP9nCVR/kkshYfLDJf1yKs=" ];
|
2021-11-01 21:56:32 +00:00
|
|
|
}
|