flake.nix: Support different system types
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user