Skip to content

Commit 89d23a3

Browse files
committed
2 parents 7d8ab4b + d285639 commit 89d23a3

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Yuki Takagi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# nixos-declarative-fish-plugin-mgr
2+
NixOS module to manage fish plugins declaratively
3+
4+
## Usage and Examples
5+
6+
In your `/etc/nixos/configuration.nix`:
7+
8+
```nix
9+
{ config, pkgs, ... }:
10+
11+
{
12+
imports =
13+
[
14+
# 1. Add archive of this repository to your imports.
15+
(fetchTarball
16+
"https://github.com/takagiy/nixos-declarative-fish-plugin-mgr/archive/0.0.1.tar.gz")
17+
18+
#...
19+
];
20+
21+
22+
programs.fish = {
23+
# 2. Enable fish-shell if you didn't.
24+
enable = true;
25+
26+
# 3. Declare fish plugins to be installed.
27+
plugins = [
28+
"jethrokuan/fzf"
29+
"b4b4r07/enhancd"
30+
];
31+
};
32+
33+
# 4. Make sure that the dependencies of the installed fish plugins are satisfised.
34+
environment.systemPackages = with pkgs; [
35+
fzf # Required by jethrokuan/fzf.
36+
fzy # Required by b4b4r07/enhancd.
37+
38+
#...
39+
];
40+
41+
#...
42+
}
43+
```

0 commit comments

Comments
 (0)