1
0

flake.nix: Support different system types

This commit is contained in:
2023-04-16 16:37:11 +02:00
parent 4b8a678873
commit 4ab025cdad
2 changed files with 34 additions and 30 deletions

View File

@@ -1,10 +1,13 @@
{ self, nixpkgs, nixos-exporter, solid-xmpp-alarm, ... }@inputs:
rec {
generateNixosSystem = name: let
generateNixosSystem = {
name,
system ? "x86_64-linux",
}: let
localNixpkgs = nixpkgs.lib.attrByPath [ "nixpkgs-${name}" ] nixpkgs inputs;
in localNixpkgs.lib.nixosSystem {
system = "x86_64-linux";
system = system;
modules = [
({ ... }: {
/*
@@ -28,6 +31,8 @@ rec {
];
};
mapToNixosConfigurations = hosts: builtins.mapAttrs (name: host: generateNixosSystem host) hosts;
generateColmenaHost = name: hostSystem: {
deployment = {
targetHost = "${name}.net.clerie.de";