Add skrott

This commit is contained in:
2024-03-16 23:47:19 +01:00
committed by Daniel Olsen
parent 13a270b8ed
commit c4a36607c0
7 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
{ fp, config, pkgs, values, ... }:
{
imports = [
# Include the results of the hardware scan.
# ./hardware-configuration.nix
(fp /base.nix)
(fp /misc/metrics-exporters.nix)
./services/dibbler.nix
];
sops.defaultSopsFile = ../../secrets/skrott/skrott.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
sops.age.generateKey = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "skrott";
systemd.network.networks."30-yolo" = values.defaultNetworkConfig // {
matchConfig.Name = "*";
address = with values.hosts.skrott; [ (ipv4 + "/25") (ipv6 + "/64") ];
};
system.stateVersion = "24.11";
}

View File

@@ -0,0 +1,11 @@
{ config, inputs, ... }:
{
sops.secrets = {
"dibbler/config" = {
owner = "dibbler";
group = "dibbler";
};
};
services.dibbler.package = inputs.dibbler.packages.dibbler;
services.dibbler.config = config.sops.secrets."dibbler/config".path;
}