mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-02-07 04:52:14 +00:00
finish nomad, add consul, sops
This commit is contained in:
29
flake.nix
29
flake.nix
@@ -1,27 +1,32 @@
|
||||
{
|
||||
description = "nix-configurations";
|
||||
|
||||
inputs = {
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
sops-nix.url = github:Mic92/sops-nix;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
let
|
||||
globalModules = [
|
||||
{
|
||||
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
...
|
||||
} @ inputs: let
|
||||
globalModules = [
|
||||
{
|
||||
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||
}
|
||||
./modules/common.nix
|
||||
./modules/common.nix
|
||||
];
|
||||
in
|
||||
{
|
||||
in {
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||
|
||||
nixosConfigurations = {
|
||||
odroid8 = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
modules = globalModules
|
||||
++ [ ./hosts/odroid8 ];
|
||||
modules =
|
||||
globalModules
|
||||
++ [./hosts/odroid8];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user