remote-display-pi/flake.nix

27 lines
763 B
Nix
Raw Normal View History

2024-01-27 10:53:10 +01:00
# /etc/nixos/flake.nix
{
description = "flake for a remote display on a raspi";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
agenix.url = "github:ryantm/agenix";
};
outputs = {nixpkgs, nixpkgs-stable, agenix, ...} @ inputs: let
system = "aarch64-linux";
stable = import nixpkgs-stable { inherit system; config.allowUnfree = true; };
in {
nixosConfigurations.nixpi = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs stable; };
modules = [
./configuration.nix
agenix.nixosModules.default
];
};
# formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
};
}