diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-13 06:47:19 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-15 22:20:15 +0530 |
commit | 3dd390c0cb56ffb5a7c1f94afaed0b80ad12cbe1 (patch) | |
tree | d14983bb19b66f3a8c69e8d9ca8dbea296a80df0 /flake.nix |
repo: init
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..813d633 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + inputs.nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable"; + + outputs = { self, nixpkgs }: let + lib = nixpkgs.lib; + + supportedSystems = lib.platforms.unix; + forSystem = f: system: f { + inherit system; + pkgs = import nixpkgs { inherit system; }; + }; + forAllSystems = f: lib.genAttrs supportedSystems (forSystem f); + in { + devShells = forAllSystems ({ system, pkgs, ... }: { + default = pkgs.mkShell { + name = "dev"; + + buildInputs = with pkgs; [ go_1_22 gopls jq ]; + shellHook = '' + export PS1="\033[0;36m[ ]\033[0m $PS1" + ''; + }; + }); + }; +} |