summary refs log tree commit diff
path: root/nixos/modules/programs
Commit message (Collapse)AuthorAge
* nixos/bash: Use `escapeShellArg` for shell aliasesc74d2018-10-06
| | | | | | | | | | | | | | | This patch uses the library function `lib.escapeShellArg` to improve the handling of shell aliases in the NixOS module `bash`, copying the corresponding change made to the `zsh` module in commit 1e211a70cbdaf230a18ea4cb67a959039d5c2ddb (for which GitHub pull request #47471 was filed). This patch resolves GitHub issue #16973. This change presumably also should be copied to the `fish` module, but I don't know `fish` syntax so that won't be done by me. GitHub: Close NixOS/nixpkgs#16973.
* light: user needs to be in the 'video' groupWill Dietz2018-09-30
|
* light: 1.1.2 -> 1.2, use new udev support instead of setuid wrapper.Will Dietz2018-09-30
|
* docs: formatGraham Christensen2018-09-29
|
* nixos/zsh: use `escapeShelLArg' for shell aliases (#47471)Maximilian Bosch2018-09-28
| | | | | | | | Previously single quotes were used by default for aliases and the module never warned about possible collisions when having a shell alias which relies on single quotes. Adding `escapeShellArg` works around this fixes the issue and ensures that a properly quoted value is written to `/etc/zshrc`.
* nixos/yabar: fix module & test (#46954)Maximilian Bosch2018-09-20
| | | | | | | | | | | | | | | | | | | | The `pkgs.yabar` package is relatively old (2016-04) and contains several issues fixed on master. `yabar-unstable` containsa recent master build with several fixes and a lot of new features (I use `yabar-unstable` for some time now and had no issues with it). In the upstream bugtracker some bugs could be fixed on ArchLinux by simply installing `yabar-git` (an AUR package which builds a recent master). To stabilize the module, the option `programs.yabar.package` now defaults to `pkgs.yabar-unstable` and yields a warning with several linked issues that are known on `pkgs.yabar`. The test has been refactored as well to ensure that `yabar` actually starts (and avoid non-deterministic random success) and takes a screenshot of a very minimalistic configuration on IceWM. Fixes #46899
* Merge pull request #45784 from oxij/pull/44720-shell-env-editedxeji2018-09-06
|\ | | | | nixos/shells: Avoid overriding the environment for other child shells
| * nixos/shells: fix indent everywhereJan Malakhovski2018-08-30
| | | | | | | | to comply with `doc/coding-conventions.xml`
| * nixos/shells: avoid overriding the environment for child shellsTor Hedin Brønner2018-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A shared exported guard `__NIXOS_SET_ENVIRONMENT_DONE` is introduced that can be used to prevent child shells from sourcing `system.build.setEnvironment` the second time. This fixes e.g. `nix run derivation` when run from e.g. ZSH through the console or ssh. Before this Bash would resource the common environment resetting the `PATH` environment variable. We also export `system.build.setEnvironment` to `/etc/set-environment` making it easy to reset the common environment with `. /etc/set-environment` when needed and to grep for environment variables in `/etc` (which was the motivation of #30418). This reverts changes made in b00a3fc6fd82834114771f2115a2b032f0ebfe29 (the original #30418).
* | Merge pull request #46058 from symphorien/dconf-dbusJan Tojnar2018-09-05
|\ \ | | | | | | dconf module: add dconf to services.dbus.packages
| * | dconf module: add dconf to services.dbus.packagesSymphorien Gibol2018-09-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some programs like eog seem to need dconf accessible on dbus. Without this change I get (eog:1738): dconf-WARNING **: 21:20:52.770: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
* | | nixos docs: give IDs to thingsGraham Christensen2018-09-01
| | |
* | | Merge pull request #45058 from michaelpj/imp/freedesktop-modulesJan Tojnar2018-08-30
|\ \ \ | |/ / |/| | freedesktop modules: init
| * | xdg: add modules for supporting various XDG specsMichael Peyton Jones2018-08-16
| | |
* | | nixos/zsh: make enableGlobalCompInit description less ambiguousJörg Thalheim2018-08-27
| | |
* | | nixos/zsh: Adds enableGlobalCompInit optionTobias Happ2018-08-19
| |/ |/|
* | nixos/oh-my-zsh: add documentationMaximilian Bosch2018-08-07
| | | | | | | | | | | | | | | | | | | | In the last year `programs.oh-my-zsh` gained more complexity and since the introduction of features like `customPkgs` which builds a `ZSH_CUSTOM` path from a sequence of derivation a documentation may be fairly helpful to make the knowledge how to use the module and how to package new ZSH plugins visible. See https://github.com/NixOS/nixpkgs/pull/43282#issuecomment-410770432
* | nixos/oh-my-zsh: add `customPkgs` option to allow multiple derivations for ↵Maximilian Bosch2018-08-05
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `ZSH_CUSTOM` If multiple third-party modules shall be used for `oh-my-zsh` it has to be possible to create another env which composes all the packages. Now it can be done like this: ``` { pkgs, ... }: { programs.zsh.enable = true; programs.zsh.ohMyZsh = { enable = true; customPkgs = with pkgs; [ lambda-mod-zsh-theme nix-zsh-completions ]; theme = "lambda-mod"; plugins = [ "nix" ]; }; } ``` Please keep in mind that this is not compatible with `programs.zsh.ohMyZsh.custom`, only one of these options can be used ATM. Each package should store its outputs into `$out/share/zsh/<output-name>`. Completions (and ZSH-only) extensions should live in the `fpath` (`$out/share/zsh/site-functions`), plugins in `.../plugins` and themes in `.../themes` (please refer to fdb6bf6ed68c2f089ae6c729dfeaa3eddea2ce6a and 406d64aad162b3a4881747be4e24705fb5182573). All scripts in `customPkgs` will be linked together using `linkFarm` to provide a single directory for all scripts from all derivations in `customPkgs` as suggested in https://github.com/NixOS/nixpkgs/pull/43282#issuecomment-410396365.
* Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1"Tuomas Tynkkynen2018-07-28
| | | | | | | | | | | This reverts commit 095fe5b43def40279a243e663c662b02caac5318. Pointless renames considered harmful. All they do is force people to spend extra work updating their configs for no benefit, and hindering the ability to switch between unstable and stable versions of NixOS. Like, what was the value of having the "nixos." there? I mean, by definition anything in a NixOS module has something to do with NixOS...
* Merge pull request #43863 from volth/unused4Jörg Thalheim2018-07-21
|\ | | | | [bot] nixos/*: remove unused arguments in lambdas
| * [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
| |
* | ssh: fix 3572f89bbe154087d8ad83c36674d0c2499c0967Daiderd Jordan2018-07-21
| |
* | ssh: don't add empty PubkeyAcceptedKeyTypes/HostKeyAlgorithmsDaiderd Jordan2018-07-21
| | | | | | | | | | | | | | The options introduced in e2444a433fb would generate a broken ssh config when set to an empty list. /etc/ssh/ssh_config line 7: Missing argument.
* | Merge pull request #40686 from Izorkin/sshDaiderd Jordan2018-07-21
|\ \ | | | | | | ssh: custom config key types
| * | ssh: custom config key typesIzorkin2018-07-21
| | |
* | | [bot] treewide: remove unused 'inherit' in let blocksvolth2018-07-20
| |/ |/|
* | [bot]: remove unreferenced codevolth2018-07-20
| |
* | firejail: add nixos modulePeter Hoeg2018-07-14
| | | | | | | | Also add support for wrapping binaries with firejail.
* | nixos/digitalbitbox: fix evaluationvolth2018-07-09
| |
* | nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-30
| |
* | nixos/npm: add `npm` to the system closure by default (#42420)Maximilian Bosch2018-06-25
| |
* | nixos/screen: add `pkgs.screen` to the system closureMaximilian Bosch2018-06-23
| |
* | nixos/thefuck: move init scripts to `programs.*.interactiveShellInit`Maximilian Bosch2018-06-22
| | | | | | | | | | `fuck` should only be used for interactive sessions, but nothing more (so init files like `/etc/zshenv` become even more lightweight).
* | nixos/autosuggestions: add module (#41397)Maximilian Bosch2018-06-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `zsh-autosuggestions` package provides several configuration options such as a different highlight style (like `fg=cyan` which is easier to read). With `rename.nix` the old `programs.zsh.enableAutosuggestions` is still functional, but yields the following warning like this during evaluation: ``` trace: warning: The option `programs.zsh.enableAutosuggestions' defined in `<unknown-file>' has been renamed to `programs.zsh.autosuggestions.enable'. ``` The module provides the most common `zsh-autosuggestions` (highlight style and strategy) as options that will be written into the interactive shell init (`/etc/zshrc` by default). Further configuration options can be declared using the `extraConfig` attr set: ``` { programs.zsh.autosuggestions.extraConfig = { "ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE" = "buffer_size"; }; } ``` A full list of available configuration options for `zsh-autosuggestions` can be viewed here: https://github.com/zsh-users/zsh-autosuggestions/blob/v0.4.3/README.md
* | nixos/programs.mosh: refactorLenz Weber2018-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | Adds programs.mosh.withUtempter (default: true). The option enables -with-utempter for mosh, allowing it to write to /var/run/utmp and thus making connected sessions appear in the output of `who -a`. For that, a guid-wrapper is required. Also, the path to the `utempter` was hardcoded in the resulting binary until now (so it could never been found), thus, libutempter was patched accordingly to point to /run/wrappers/bin/utempter which at least works when the wrapper is configured.
* | zsh: only do promptInit when TERM!=dumbMatthew Bauer2018-05-31
| | | | | | | | This allows tramp to be used correctly when default shell is zsh.
* | Merge pull request #38791 from LnL7/nixos-profile-variablesDaiderd Jordan2018-05-30
|\ \ | | | | | | nixos: remove PKG_CONFIG_PATH/PERL5LIB environment variables
| * | nixos: remove PKG_CONFIG_PATH and PERL5LIB environment variablesDaiderd Jordan2018-04-11
| | | | | | | | | | | | | | | These make libraries installed in the system or even user profiles magically available.
* | | nixos/programs/shell.nix: Enhance bad ownership error messageTuomas Tynkkynen2018-05-24
| | | | | | | | | | | | | | | Steal this from scripts/nix-profile.sh.in in Nix to keep things more consistent.
* | | nixos/programs/shell.nix: Use [ ] instead of testTuomas Tynkkynen2018-05-24
| | | | | | | | | | | | | | | Half of the script is using 'test' and other half '[ ]'. Let's stick to '[ ]' everywhere as it seems more conventional in nixpkgs.
* | | nixos/programs/shell.nix: Quote variablesTuomas Tynkkynen2018-05-24
| | | | | | | | | | | | | | | In practice $HOME doesn't contain spaces, but let's stick to best shell scripting practices anyway.
* | | Revert "zsh: move setEnvironment stuff to zprofile"Gregor Kleen2018-05-19
| | | | | | | | | | | | This reverts commit 77a6cbb1c1feeb6b6424d35319ac6226c780b34a.
* | | nixos/xss-lock: add module (#40619)Maximilian Bosch2018-05-18
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `xsslock` (which was originally packaged in 6cb1d1aaaf02a72329bedf9c6960e54fea6f5c6e) is a simple screensaver which connects a given screen locker (e.g. `i3lock`) with `logind`. Whenever `loginctl lock-sessions` is invoked the locker will be used to lock the screen. This works with its power management features (e.g. `lid switch`) as well, so the PC can be locked automatically when the lid is closed. The module can be used like this: ``` { services.xserver.enable = true; programs.xss-lock.enable = true; programs.xss-lock.lockerCommand = "i3lock"; } ```
* | Merge pull request #40223 from ↵Matthew Justin Bauer2018-05-16
|\ \ | | | | | | | | | | | | jD91mZM2/shouldnt-we-just-use-the-pam-environment-file-instead zsh: move setEnvironment stuff to zprofile
| * | zsh: move setEnvironment stuff to zprofilejD91mZM22018-05-09
| | |
* | | Merge pull request #40581 from peterhoeg/p/sedutilPeter Hoeg2018-05-16
|\ \ \ | | | | | | | | sedutil: init at 1.15.1 and corresponding nixos module
| * | | nixos sedutil: module for setting up kernel parametersPeter Hoeg2018-03-19
| | | |
* | | | nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1Jan Malakhovski2018-05-12
| |/ / |/| |
* | | Merge pull request #38831 from rdnetto/improve-cross-refsGraham Christensen2018-04-30
|\ \ \ | | | | | | | | Improve cross referencing in NixOS Manual
| * | | Added cross-references to NixOS manualReuben D'Netto2018-04-12
| | | |