mirror of
https://github.com/sayanarijit/xplr.git
synced 2024-09-11 19:07:47 +03:00
NixOS install instructions
This commit is contained in:
parent
cc578aaf0a
commit
470bea1265
@ -41,6 +41,50 @@ repositories:
|
||||
nix-env -f https://github.com/NixOS/nixpkgs/tarball/master -iA xplr
|
||||
```
|
||||
|
||||
Or
|
||||
|
||||
```nix
|
||||
# configuration.nix or darwin-configuration.nix
|
||||
environment.systemPackages = with nixpkgs; [
|
||||
xplr
|
||||
# ...
|
||||
];
|
||||
```
|
||||
|
||||
#### [Home Manager][30]
|
||||
|
||||
```nix
|
||||
# home.nix
|
||||
home.packages = with nixpkgs; [
|
||||
xplr
|
||||
# ...
|
||||
];
|
||||
```
|
||||
|
||||
# Or
|
||||
|
||||
```nix
|
||||
# home.nix
|
||||
programs.xplr = {
|
||||
enable = true;
|
||||
|
||||
# Optional params:
|
||||
plugins = {
|
||||
icons = fetchFromGitHub {
|
||||
owner = "sayanarijit";
|
||||
repo = "wl-clipboard.xplr";
|
||||
};
|
||||
local-plugin = "/home/user/.config/plugins/local-plugin";
|
||||
};
|
||||
extraConfig = ''
|
||||
package.path = os.getenv("LUA_PATH") .. ";" .. package.path
|
||||
package.cpath = os.getenv("LUA_CPATH") .. ";" .. package.cpath
|
||||
|
||||
require("icons").setup()
|
||||
'';
|
||||
};
|
||||
```
|
||||
|
||||
### Arch Linux
|
||||
|
||||
(same for Manjaro Linux)
|
||||
@ -242,3 +286,4 @@ cargo install --locked xplr
|
||||
[27]: https://pkgs.alpinelinux.org/packages?name=xplr
|
||||
[28]: https://gpo.zugaina.org/Overlays/guru/app-misc/xplr
|
||||
[29]: https://formulae.brew.sh/formula/coreutils
|
||||
[30]: https://github.com/nix-community/home-manager/blob/master/modules/programs/xplr.nix
|
||||
|
Loading…
Reference in New Issue
Block a user