From 2dcf8565f60d565f6838648d7f49d88adf988e02 Mon Sep 17 00:00:00 2001 From: roshan Date: Sun, 19 Feb 2023 20:10:44 +0530 Subject: [PATCH] fix: nixosModules --- flake.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 946c238..21cdd22 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ inputs.nixpkgs.url = "github:NixOs/nixpkgs/nixos-22.11"; inputs.flake-utils.url = "github:numtide/flake-utils/v1.0.0"; - outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem ( system : + outputs = inputs: (inputs.flake-utils.lib.eachDefaultSystem ( system : let pname = "ignou"; version = "2.0"; @@ -33,9 +33,9 @@ cd ${ignouDrv} ${pyEnv}/bin/python3 -m bot''; - in { + in rec { - packages.deafult = pkgs.buildEnv { + packages.default = pkgs.buildEnv { name = "${pname}-${version}"; paths = [ ignouDrv pyEnv ]; }; @@ -43,8 +43,7 @@ devShell = pkgs.mkShell { buildInputs = [ pyEnv ]; }; - + })) // { nixosModules.default = import ./nix/module.nix inputs; - - }); + }; }