Add flake, module

This commit is contained in:
Henry Hiles 2025-06-19 22:15:05 -04:00
commit f04d073e6b
No known key found for this signature in database
4 changed files with 886 additions and 9 deletions

View file

@ -4,13 +4,8 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {
flake-parts,
nixpkgs,
self,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-linux"];
perSystem = {
lib,
@ -18,7 +13,7 @@
system,
...
}: {
_module.args.pkgs = import nixpkgs {inherit system;};
_module.args.pkgs = import inputs.nixpkgs {inherit system;};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [just dart oauth2c watchexec];
@ -30,7 +25,9 @@
src = ./.;
dartConfigHook = "packageRun build_runner build";
autoPubspecLock = ./pubspec.lock;
pubspecLock = lib.importJSON ./pubspec.lock.json;
preInstall = "set -x";
meta = {
homepage = "https://git.federated.nexus/Henry-Hiles/matrixoidc";
@ -40,6 +37,8 @@
maintainers = [lib.maintainers.quadradical];
};
};
flake.nixosModules.default = import ./module.nix;
};
};
}