Skip to content

Commit f74855c

Browse files
committed
refactor: move nixos module to its own repo
1 parent faa9ca4 commit f74855c

File tree

2 files changed

+4
-289
lines changed

2 files changed

+4
-289
lines changed

flake.nix

+4-15
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717
inputs.flake-parts.lib.mkFlake { inherit inputs self; } {
1818
systems = import inputs.systems;
1919
flake = {
20-
nixosModules = {
21-
default = {
22-
imports = [ ./module.nix ];
23-
nixpkgs.overlays = [ self.overlays.default ];
24-
};
25-
};
20+
hydraJobs = inputs.nixpkgs.lib.genAttrs [ "packages" "checks" "devShells" ] (attrs: {
21+
inherit (self.${attrs}) x86_64-linux aarch64-linux;
22+
});
2623
};
2724
imports = [
2825
inputs.treefmt-nix.flakeModule
@@ -50,15 +47,7 @@
5047
inherit (config.packages) lysand-ap-layer ls-ap-migration;
5148
};
5249
# Rust package
53-
packages.default = naersk'.buildPackage {
54-
inherit (cargoToml.package) name version;
55-
src = ./.;
56-
buildInputs = nonRustDeps;
57-
nativeBuildInputs = with pkgs; [
58-
rust-toolchain
59-
pkg-config
60-
];
61-
};
50+
packages.default = config.packages.lysand-ap-layer;
6251
packages.lysand-ap-layer = naersk'.buildPackage {
6352
inherit (cargoToml.package) name version;
6453
src = ./.;

module.nix

-274
This file was deleted.

0 commit comments

Comments
 (0)