summaryrefslogtreecommitdiff
path: root/modules/programs
AgeCommit message (Collapse)Author
2024-12-29Merge pull request #1233 from adamcstephens/fish/packageMichael Hoang
fish: add package option
2024-12-29fix(zsh): correct the path of zsh-fast-syntax-highlightingXingquan Liu
2024-12-27fish: add package optionAdam C. Stephens
2024-12-23programs.ssh: add extraConfig optionJörg Thalheim
Same interface as in NixOS. This is useful to apply configuration for remote builders.
2024-11-07zsh: only run shell initialization in /etc/zshenv when RCs are enabledSam
2024-11-06Merge pull request #909 from motheki/fast-syntax-highlighting-supportMichael Hoang
Add support for zsh-fast-syntax-highlighting
2024-11-06Update modules/programs/zsh/default.nix Trevor Opiyo
Changes added by Enzime Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-11-05Update default.nixTrevor Opiyo
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-11-02Merge pull request #1135 from Enzime/push-lxwqqpssklynEmily
environment: remove misleading `environment.loginShell` option
2024-10-31tmux: remove `programs.tmux.defaultCommand`Michael Hoang
2024-10-31zsh: enable by default as zsh is the default shell on macOSMichael Hoang
Historically this was a footgun because users would not always have this enabled leading to `darwin-rebuild` and other programs not being found.
2024-10-08programs/bash: move to completion.*isabel
a port of https://github.com/NixOS/nixpkgs/pull/291552 for darwin
2024-09-12{bash,zsh}: remove nix-shell early return in /etc/{bashrc,zshenv}Antoine Cotten
The condition does not match the comment, and therefore not the original intention. It currently returns early in *any* type of Nix shell, not just pure ones, including 'nix develop'. Besides being unnecessary, this check prevents Nix shells from functioning properly. For instance, it causes the initialization of the Zsh fpath to be skipped, which is critical. The fact that the user is unable to opt out of this behaviour makes this an ever bigger problem since /etc/zshenv is being loaded unconditionally by Zsh. For reference, NixOS does not perform such check, and apparently never did.
2024-09-11zsh: don't be noisy when scripts are run with -uSebastian Reuße
When a script specifies the shell option "nounset" as part of the shebang (e.g., via "#!/usr/bin/env -S zsh -u"), our initialization scripts would produce error messages of the form: __ETC_FOO_SOURCED: parameter not set These messages could probably be confusing to users when running such scripts. By providing a fall-back in the parameter expansion, we can avoid them. This patch does not address interactive shell start-up, where such messages may (or may not) be less problematic. NixOS/nixpkgs@7d84dbdf5b91439f798363559310d86b21bfa86c
2024-09-11zsh: let children shells set their fpathJörg Thalheim
Currently zshenv by default only sets fpath without exporting it. A parent shell would also not set those variables usually as they are shell local. It also sources a file called set-environment but this is protected by an environment variable called __NIX_DARWIN_SET_ENVIRONMENT_DONE. Hence any modification done by the parent shell should persist as long as __NIX_DARWIN_SET_ENVIRONMENT_DONE is not unset. This behavior deviates from what we do in bashrc and breaks common setups such as tmux/mosh or screen. NixOS/nixpkgs@55819e6c861f53450030eea832a76583a6786370
2024-09-10zsh: prefer Nix completions these from Zsh packageSebastian Reuße
Zsh ships some rudimentary completions for programs where upstream also ships their own completions (e.g., curl). So as not to shadow those completions, we need to prepend to the fpath instead of appending. NixOS/nixpkgs@8dad5a22399782a4ef681174219546cb050e580f
2024-09-10zsh: move fpath init from /etc/zshrc to /etc/zshenvJan Malakhovski
We want these to be set even when /etc/zshrc loading is disabled. NixOS/nixpkgs@f70e3f3738300ef1e94737c09364cd176893858f
2024-08-29gpg: Suppress stderr from gpg-connect-agent on shell initIhar Hrachyshka
In some scenarios, the command may fail, e.g. when the shell is executed with a different $HOME from where gpg agent is configured to run from. (E.g. this happens in kitty terminal test suite.) This patch will suppress stderr errors on tty in this situation. Note that zsh does not allow to suppress execution of /etc/zshenv on startup, so it's impossible to skip it in the test suite environment. An alternative would be to set IN_NIX_SHELL in the test suite, but this was rejected in upstream: https://github.com/kovidgoyal/kitty/pull/7800 There's also a kitty package specific fix posted here but this may be unnecessary once nix-darwin is patched here: https://github.com/NixOS/nixpkgs/pull/338070 Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2024-08-17refactor: rename environment.postBuild to environment.extraSetupAlice Carroll
2024-07-31programs.ssh: add certificate authoritiesJörg Thalheim
2024-07-27`mapAttrsFlatten` -> `mapAttrsToList`zowoq
deprecated in https://github.com/NixOS/nixpkgs/commit/473e469d5a921a57b484a09d446cee6c231cd592
2024-07-10Merge pull request #976 from emilazy/openssh-use-links-for-authorized-keysEmily
ssh: use symlinks for `authorizedKeys` options
2024-07-01chore: remove mkpackageoptionmd deprecationNikola Milojević
2024-06-15ssh: use symlinks for `authorizedKeys` optionsEmily
As explained in the changelog and activation check, the previous implementation had a nasty security bug that made removing a user’s authorized keys effectively a no‐op.
2024-05-29add warning for enabling syntax highlighting and fast syntax highlightingTrevor Opiyo
2024-05-29Add support for zsh-fast-syntax-highlightingTrevor Opiyo
2024-05-20Change zsh default promptDominik Gleich
2024-04-19treewide: remove lib.mdDocWeijia Wang
2024-02-27nix-darwin/programs.direnv: initMathew Polzin
2024-02-23etc: add known hash for `/etc/zshenv` and `/etc/nix/nix.conf`Evan Petousis
Adds support for DeterminateSystems installer 0.16.0 and later. Fixes #880.
2024-01-21Add option to disable zsh global compinitJōshin
Fixes #855.
2023-09-15programs.ssh: write ssh known_hosts only if there are any setWael M. Nasreddine
2023-08-05fish: simplify `babelfishTranslate`Emily
2023-08-05fish: add default for `babelfishPackage`Emily
This option should probably be dropped but I'd prefer to batch that with using Babelfish by default (or unconditionally, as Home Manager does) so as to avoid multiple independent breaking changes. Fixes: #632
2023-07-26Update modules/programs/bash/default.nixJakub Janczak
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2023-07-26Don't run static bashrc only for pure nix-shellJakub Janczak
2023-07-12etc: use `.before-nix-darwin` instead of `.orig`Michael Hoang
2023-07-11doc: store a copy of known filesMichael Hoang
2023-07-10fix zsh eating output without new line endingCuichen Li
2023-06-24treewide: convert all option docs to MarkdownEmily
This process was automated by [my fork of `nix-doc-munge`]; thanks to @pennae for writing this tool! It automatically checks that the resulting documentation doesn't change, although my fork loosens this a little to ignore some irrelevant whitespace and typographical differences. As of this commit there is no DocBook remaining in the options documentation. You can play along at home if you want to reproduce this commit: $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \ nix shell nixpkgs#coreutils \ -c find . -name '*.nix' \ -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \ {} + [my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2023-06-08ssh: fix public keys in home directory not workingMichael Hoang
Added `services.openssh.authorizedKeysFiles` option from NixOS.
2023-05-10give creditssbh69840
2023-05-10newline eof for authorized-keys confsbh69840
2023-05-10authkeys path in sshd_configsbh69840
2023-05-10enable copysbh69840
2023-05-10support authorized_keys for userssbh69840
2022-06-30add escape to shell aliasesTianyao Chou
2021-10-23add forward compatibility for literalExample deprecationDaiderd Jordan
Fixes #367
2021-02-17Merge pull request #288 from r-burns/fish-fenvDaiderd Jordan
fish: fix fenv function path
2021-02-17Merge pull request #292 from MaxSchlueter/fix-gnupg-agentDaiderd Jordan
Fix gnupg-agent being kept alive