Skip to content

Commit

Permalink
Refactor flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Jun 10, 2024
1 parent c79575c commit 39363ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
{
nixosModule = import ./nix/module.nix self.outputs.packages;
} //
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
outputs = inputs: with inputs;
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
version = builtins.substring 0 8 self.lastModifiedDate or "dirty";
in
{
packages.default = pkgs.callPackage ./nix/package.nix { inherit version; };
nixosModule = import ./nix/module.nix self.outputs.packages;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
dotnet-sdk_6
Expand Down

0 comments on commit 39363ff

Please sign in to comment.