diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2017-05-13 15:05:36 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2017-05-13 15:05:36 +0200 |
| commit | 1c30a6ab2d1c587195c9c6b6aced7d427d90386c (patch) | |
| tree | f7f9d97863e3cae584ebbe81749988eccdbaf03f /modules/programs | |
| parent | 2343363b5b67c02781b57e61ce8be333da5c7550 (diff) | |
fish: link /share/fish when enabled
Diffstat (limited to 'modules/programs')
| -rw-r--r-- | modules/programs/fish.nix | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index 698bc32..ba0f67d 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -111,6 +111,13 @@ in config = mkIf cfg.enable { + environment.systemPackages = [ pkgs.fish ]; + + environment.pathsToLink = [ "/share/fish" ]; + + environment.loginShell = mkDefault "${shell}/bin/fish -l"; + environment.variables.SHELL = mkDefault "${shell}/bin/fish"; + environment.etc."fish/config.fish".text = '' # /etc/fish/config.fish: DO NOT EDIT -- this file has been generated automatically. @@ -141,14 +148,6 @@ in end ''; - # include programs that bring their own completions - # FIXME: environment.pathsToLink = [ "/share/fish/vendor_completions.d" ]; - - environment.systemPackages = [ pkgs.fish ]; - - environment.loginShell = mkDefault "${shell}/bin/fish -l"; - environment.variables.SHELL = mkDefault "${shell}/bin/fish"; - }; } |
