From a69a323496a0206ca4528c26524a57ecb97ddf7a Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 14 Oct 2024 18:37:24 +0530 Subject: flake: init --- flake.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..608fc48 --- /dev/null +++ b/flake.nix @@ -0,0 +1,40 @@ +{ + description = "/comfy/ subtitles for mpv"; + + inputs.nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable"; + + outputs = + { self, nixpkgs }: + let + lib = nixpkgs.lib; + + forSystem = + f: system: + f { + inherit system; + pkgs = import nixpkgs { inherit system; }; + }; + + supportedSystems = lib.systems.flakeExposed; + forAllSystems = f: lib.genAttrs supportedSystems (forSystem f); + in + { + devShells = forAllSystems ( + { system, pkgs }: + { + default = pkgs.mkShell { + buildInputs = with pkgs; [ + lua-language-server + nixfmt-rfc-style + stylua + lua + ]; + + shellHook = '' + export PS1="\033[0;35m[ ]\033[0m $PS1" + ''; + }; + } + ); + }; +} -- cgit v1.2.3