Refactor machine logic

This commit is contained in:
Pim Kunis 2024-11-04 23:35:04 +01:00
parent fd423b8237
commit 1e80b36037
11 changed files with 53 additions and 114 deletions

View file

@ -3,7 +3,6 @@
pkgs,
lib,
inputs,
machine,
config,
...
}: {
@ -16,7 +15,6 @@
./k3s
./tailscale.nix
./facter.nix
machine.nixosModule
inputs.disko.nixosModules.disko
inputs.sops-nix.nixosModules.sops
inputs.nix-snapshotter.nixosModules.nix-snapshotter

View file

@ -38,7 +38,7 @@ in {
let
generated =
lib.attrsets.mapAttrsToList
(name: machine: {
(name: _module: {
job_name = name;
static_configs = [
{

View file

@ -1,7 +1,6 @@
{
lib,
config,
machine,
...
}: {
config = {