From 438ad16d03f38e0e444f6ad575078ee949679a86 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 27 Dec 2023 16:05:41 +0530 Subject: repo: init --- flake.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d6a6346 --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "A passwordstore and Secret Service API implementation"; + + 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; [ gpgme ]; + shellHook = '' + [ -z "$XDG_DATA_HOME" ] && + export XDG_DATA_HOME="$HOME/.local/share" + export PASSWORD_STORE_DIR="$XDG_DATA_HOME/debug_pass" + export PS1="\033[0;32m[󰟵 ]\033[0m $PS1" + ''; + }; + }); + }; +} -- cgit v1.2.3