Skip to content

Commit

Permalink
chore: neat flake
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Mar 14, 2024
1 parent 027b49c commit db8ac55
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
outputs = inputs@{ self, flake-parts, pre-commit-hooks, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ withSystem, ... }: {
imports = [
pre-commit-hooks.flakeModule
];
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
Expand All @@ -30,11 +31,10 @@
dae = pkgs.callPackage ./dae/package.nix { };
daed = pkgs.callPackage ./daed/package.nix { };
};

checks = {
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
src = inputs.nixpkgs.lib.cleanSource ./.;
hooks = { nixpkgs-fmt.enable = true; };
pre-commit = {
check.enable = true;
settings.hooks = {
nixpkgs-fmt.enable = true;
};
};
};
Expand All @@ -48,9 +48,10 @@
nixosModules = {
${n} = { pkgs, ... }: {
imports = [ ./${n}/module.nix ];
services.dae.package = withSystem pkgs.stdenv.hostPlatform.system ({ config, ... }:
config.packages.${n}
);
services.dae.package =
withSystem pkgs.stdenv.hostPlatform.system ({ config, ... }:
config.packages.${n}
);
};
};
overlays = {
Expand Down

0 comments on commit db8ac55

Please sign in to comment.