remote-display-pi/flake.nix

30 lines
930 B
Nix
Raw Permalink Normal View History

2024-01-27 10:53:10 +01:00
{
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";
2024-01-27 14:22:51 +01:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2024-01-27 10:53:10 +01:00
};
2024-01-27 14:22:51 +01:00
outputs = {nixpkgs, nixpkgs-stable, agenix, nixos-hardware, ...} @ inputs: let
2024-01-27 10:53:10 +01:00
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
2024-01-27 14:22:51 +01:00
nixos-hardware.nixosModules.raspberry-pi-4
2024-01-27 10:53:10 +01:00
agenix.nixosModules.default
2024-01-29 14:30:13 +01:00
./miraclecast.nix
2024-02-07 09:58:10 +01:00
./modules/toolchains.nix
2024-01-27 10:53:10 +01:00
];
};
2024-02-07 09:58:10 +01:00
formatter.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.alejandra;
2024-01-27 10:53:10 +01:00
};
}