From 39363ff1a493ab1fb0322aead01ef730f2ca11ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Mon, 10 Jun 2024 23:05:37 +0200 Subject: [PATCH] Refactor flake.nix --- flake.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 7a0f4e4..67974b5 100644 --- a/flake.nix +++ b/flake.nix @@ -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