From 0e259e49357d5389db897414fc52b50b1ce1d14c Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 11 Sep 2024 20:52:44 +0000 Subject: example: add lua simple-bar --- docs/getting-started/supported-languages.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/getting-started') diff --git a/docs/getting-started/supported-languages.md b/docs/getting-started/supported-languages.md index f69dd19..7d8fc5f 100644 --- a/docs/getting-started/supported-languages.md +++ b/docs/getting-started/supported-languages.md @@ -25,7 +25,8 @@ components that don't render child nodes dynamically, bars and panels for exampl Examples: -- TODO +- [Simple Bar](https://github.com/Aylur/astal/tree/main/examples/lua/simple-bar) +![simple-bar](https://github.com/user-attachments/assets/a306c864-56b7-44c4-8820-81f424f32b9b) ## Python -- cgit v1.2.3 From 8b75dadc76274692988eb317d3cc6ce1aaa44780 Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 11 Sep 2024 22:27:12 +0000 Subject: docs: package lua on nix --- docs/getting-started/installation.md | 2 +- docs/getting-started/nix.md | 31 ++++++++++++++++++++++--------- 2 files changed, 23 insertions(+), 10 deletions(-) (limited to 'docs/getting-started') diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index bbdced9..ef5c6e8 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -4,7 +4,7 @@ maintainer: [@Aylur](https://github.com/Aylur) -Read more about it on the [nix page](./nix) +Read more about it on the [nix page](./nix#astal) ## Arch diff --git a/docs/getting-started/nix.md b/docs/getting-started/nix.md index 3c3e8a9..2f320f3 100644 --- a/docs/getting-started/nix.md +++ b/docs/getting-started/nix.md @@ -6,19 +6,32 @@ Using Astal on Nix will require you to package your project. :::code-group -```nix [typescript.nix] -# Not documented yet -``` +```nix [ Lua] +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + astal = { + inputs.nixpkgs.follows = "nixpkgs"; + url = "github:nixos/nixpkgs/nixos-unstable"; + }; + }; -```nix [lua.nix] -# Not documented yet + outputs = { self, nixpkgs, astal }: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + packages.${system}.default = astal.lib.mkLuaPacakge { + inherit pkgs; + }; + }; +} ``` -```nix [python.nix] +```nix [ Python] # Not documented yet ``` -```nix [vala.nix] +```nix [ Vala] # Not documented yet ``` @@ -34,7 +47,7 @@ Example content of a `flake.nix` file that contains your `homeConfigurations`. :::code-group -```nix [flake.nix] +```nix [ flake.nix] { inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; @@ -71,7 +84,7 @@ Example content of `home.nix` file :::code-group -```nix [home.nix] +```nix [ home.nix] { inputs, pkgs, ... }: { # add the home manager module -- cgit v1.2.3