File tree Expand file tree Collapse file tree 2 files changed +31
-9
lines changed
docs/guide/getting-started Expand file tree Collapse file tree 2 files changed +31
-9
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,40 @@ Using Astal on Nix will require you to write a derivation for your project.
9
9
You can either copy and build off of these example flakes or you can
10
10
incorporate the derivations into your existing flake/configuration.
11
11
12
- ## Q: "How do I install Astal on Nix?"
12
+ ## Installing libraries versus installing executables
13
13
14
- :::details See answer
15
- A: <span style =" font-size : 1.2em ; font-weight : bold ;" >You don't.</span >
16
-
17
- You can't install libraries globally on Nix as you would with regular
14
+ In case you did not know already,
15
+ you can't install libraries globally on Nix as you would with regular
18
16
package managers like ` pacman ` , ` dnf ` or ` apt ` . You have to write a
19
17
derivation for your projects like you would for any other program.
18
+ If you try to install a library through ` home.packages ` or ` environment.systemPackages `
19
+ don't expect it to be picked up from runtimes.
20
+
21
+ However, if you want to use the CLI tool that comes with some of the libraries
22
+ you have to ** also** install them through ` home.packages ` or ` environment.systemPackages `
23
+ alongside your derivations.
24
+
25
+ ### Astal CLI
26
+
27
+ The core library also comes with a CLI tool that you can use to send
28
+ requests to your app.
29
+
30
+ ::: code-group
31
+
32
+ ``` nix [nixos]
33
+ environment.systemPackages = [inputs.astal.packages.${system}.default];
34
+ ```
35
+
36
+ ``` nix [home-manager]
37
+ home.packages = [inputs.astal.packages.${system}.default];
38
+ ```
39
+
20
40
:::
21
41
42
+ ``` sh [astal cli]
43
+ astal --list # list running instances
44
+ ```
45
+
22
46
## TypeScript
23
47
24
48
Using [ AGS] ( https://aylur.github.io/ags/ ) as the bundler.
Original file line number Diff line number Diff line change 54
54
vala-language-server
55
55
vtsls
56
56
vscode-langservers-extracted
57
+ markdownlint-cli2
57
58
] ;
58
59
in {
59
60
default = pkgs . mkShell {
64
65
buildInputs
65
66
++ lsp
66
67
++ builtins . attrValues (
67
- builtins . removeAttrs self . packages . ${ pkgs . system } [
68
- "docs"
69
- "cava" # FIXME: temporary autoreconf
70
- ]
68
+ builtins . removeAttrs self . packages . ${ pkgs . system } [ "docs" ]
71
69
) ;
72
70
} ;
73
71
}
You can’t perform that action at this time.
0 commit comments