1
Fork 0
mirror of https://github.com/RGBCube/hjem synced 2026-01-14 09:11:00 +00:00
hjem/flake.nix
2025-05-05 19:02:48 -04:00

28 lines
677 B
Nix

{
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
outputs = {
self,
nixpkgs,
...
}: let
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
in {
nixosModules = {
hjem = ./modules/nixos;
default = self.nixosModules.hjem;
};
checks = forAllSystems (system: let
checkArgs = {
inherit self;
pkgs = nixpkgs.legacyPackages.${system};
};
in {
hjem-basic = import ./tests/basic.nix checkArgs;
hjem-special-args = import ./tests/special-args.nix checkArgs;
});
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
};
}