2022-06-06 23:12:54 +02:00
|
|
|
{
|
|
|
|
description = "System configuration for zion";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
2022-07-12 21:02:11 +02:00
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
2022-06-06 23:12:54 +02:00
|
|
|
};
|
|
|
|
|
2022-07-12 21:02:11 +02:00
|
|
|
outputs = { self, nixpkgs, agenix, nixos-hardware, ... }@inputs:
|
2022-06-06 23:12:54 +02:00
|
|
|
let
|
|
|
|
system = "aarch64-linux";
|
|
|
|
|
2022-07-12 21:02:11 +02:00
|
|
|
pkgs = import pkgs { inherit system; };
|
2022-06-06 23:12:54 +02:00
|
|
|
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
|
|
|
|
in {
|
|
|
|
nixosConfigurations.zion = lib.nixosSystem {
|
|
|
|
inherit system;
|
2022-07-12 21:02:11 +02:00
|
|
|
modules = [
|
|
|
|
(import ./configuration.nix)
|
|
|
|
agenix.nixosModules.age
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
];
|
2022-06-06 23:12:54 +02:00
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|