1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00
Commit graph

503 commits

Author SHA1 Message Date
Robert Helgesson
0312d450e2
random-background: minor documentation improvements
(cherry picked from commit cf5dac9563)
2019-04-04 23:39:56 +02:00
Robert Helgesson
b8eb7a03c5
manual: use writeShellScriptBin
(cherry picked from commit 5d81cb6ac7)
2019-04-04 23:39:56 +02:00
Robert Helgesson
deb2868d57
polybar: use writeShellScriptBin
(cherry picked from commit 41356ac267)
2019-04-04 23:39:56 +02:00
Robert Helgesson
6fcaef5235
firefox: make the extensions option visible
Also change the example to use the firefox-addons available on NUR.

(cherry picked from commit 86af599a18)
2019-04-04 23:39:56 +02:00
Robert Helgesson
c40fa72cde
ssh: support multiple identity files in a match block
Fixes #625

(cherry picked from commit eec78fbd1e)
2019-04-04 23:36:18 +02:00
Robert Helgesson
594294e2ca
Remove some use of mkDerivation
Instead use `runCommand`, which by default uses `stdenvNoCC` resulting
in a reduced dependency footprint.

Fixes #612

(cherry picked from commit 70d4cf2cd9)
2019-04-04 23:36:02 +02:00
arcnmx
2b19f15be3
git: make userName and userEmail options optional
(cherry picked from commit 52692e299d)
2019-04-04 23:35:34 +02:00
Robert Helgesson
5d5bc3dc5a
firefox: add support for add-on packages
Since no official source of packages exist the option is hidden for
now. For adventurous people there is an overlay of a few selected
add-ons available at

    https://rycee.gitlab.io/nixpkgs-firefox-addons/overlay.tar.gz

This overlay is automatically built daily using the REST API available
on https://addons.mozilla.org/.

(cherry picked from commit 267afa5a3b)
2019-04-04 23:35:34 +02:00
Robert Helgesson
d99f0cbe62
docs: add language attribute to program listings
(cherry picked from commit a09196c4ae)
2019-04-04 23:35:09 +02:00
Mario Rodas
fdda547e9e
git: allow contents in git.includes
(cherry picked from commit 6da88339f5)
2019-04-04 23:34:35 +02:00
Olli Helenius
fa19c18343
pam: enclose session variable values in quotes
(cherry picked from commit 848b8b983e)
2019-04-04 23:32:34 +02:00
Maximilian Bosch
3c2823e3cd
programs/zsh: properly escape shell aliases
Otherwise all aliases break that use single quotes inside.

Already fixed in the nixpkgs module in 1e211a70cbdaf230a18ea4cb67a959039d5c2ddb.

(cherry picked from commit 465d08d99f)
2019-04-04 23:32:34 +02:00
Douglas Wilson
ee1bfa0d92
systemd: sanitize unit derivation names
To allow a few special characters such as "@".

This is taken from

    c414e5bd08/nixos/modules/system/boot/systemd-lib.nix (L14)

(cherry picked from commit 74811679b7)
2019-02-23 22:59:08 +01:00
Robert Helgesson
8980e08240
msmtp: use <parameter> for CLI options in description
(cherry picked from commit 93f5fcae1e)
2019-02-23 22:59:01 +01:00
Robert Helgesson
2bdaf4ae98
nixos module: support NixOS user packages install
When using the NixOS module we cannot guarantee that the Nix store
will be writable during startup. Installing the user packages through
`nix-env -i` will fail in these cases.

This commit adds a NixOS option `home-manager.useUserPackages` that,
when enabled, installs user packages through the NixOS

    users.users.<name?>.packages

option.

Note, when submodule support and external package install is enabled
then the installed packages are not available in `~/.nix-profile`. We
therefore set `home.profileDirectory` directly to the HM profile
packages.

(cherry picked from commit ef168979bf)
2019-02-23 22:58:47 +01:00
Robert Helgesson
1ade5cad80
Revert "fish: use global for abbr"
This reverts commit 7d6a6cbbe3.

The version of fish in Nixpkgs 18.09 is not compatible with this
option. See #581.
2019-02-13 17:25:03 +01:00
Olli Helenius
cf5b16b45f
msmtp: use XDG config directory
(cherry picked from commit a3462daeb1)
2019-02-11 01:23:50 +01:00
Robert Helgesson
ee7631fbe3
git: add basic support for LFS
Fixes #542

(cherry picked from commit 1cdb8abf30)
2019-02-11 01:22:02 +01:00
Robert Helgesson
1c3614cbc8
Clean up support code for Home Manager as a submodule
This removes the `nixosSubmodule` option in favor of a new option
`submoduleSupport.enable`. This name better indicates that the
submodule mode applies to both NixOS and nix-darwin.

(cherry picked from commit 2f372ab4d6)
2019-02-11 01:22:02 +01:00
Jonas Holst Damtoft
5ccc2298de
emacs: add service module
(cherry picked from commit 0ca1bf3cfd)
2019-02-11 01:22:01 +01:00
Matthieu Coudron
0f4c798c81
neovim: allow to override package
If you want to run a development version for instance, it is easier to
set neovim.package rather than work around the wrapping mechanism etc.

(cherry picked from commit c18984c452)
2019-02-11 01:22:01 +01:00
Robert Helgesson
f89522362f
git: use attrsOf instead of attrs
This makes sure that values added to

    programs.git.aliases

or

    programs.git.extraConfig

are merged as expected.

Also add a few option examples.

(cherry picked from commit 445c0b1482)
2019-02-11 01:22:01 +01:00
Robert Helgesson
7772158ac4
mbsync: add basic test of result configuration
(cherry picked from commit 0590c2a4f6)
2019-02-11 01:22:01 +01:00
Nadrieril
fb96af9b9d
mbsync: add some required assertions
(cherry picked from commit 81ec856a0f)
2019-02-11 01:22:01 +01:00
Yurii Rashkovskii
c73685ec74
nixpkgs: fix installation on non-x86
On non-x86 architectures (for example, aarch64) the installation of
home-manager fails indicating that it is attempting to select i686
packages for Linux and those aren't available.

Solution: make the condition for choosing these packages stricter
(cherry picked from commit 2410bc603b)
2019-02-11 01:22:00 +01:00
Robert Helgesson
de2d6a5d95
git: quote sendemail section header
This will allow, e.g., the character `@` in the email identity.

Also adds a test case.

Fixes #557

(cherry picked from commit 45cadbd4f3)
2019-02-11 01:22:00 +01:00
Amarandus
3bef871dac
irssi: add module
irssi is a cli IRC client.

(cherry picked from commit 02a5a678f6)
2019-02-11 01:22:00 +01:00
Robert Helgesson
27042d1050
flameshot: add bars to systemd After
Fixes #544

(cherry picked from commit 98f534e172)
2019-02-11 01:22:00 +01:00
Matthieu Coudron
a6475e3e60
git: generate identities from mail accounts
(cherry picked from commit a68c8cf5f1)
2019-02-11 01:22:00 +01:00
wedens
17aaf04f72
polybar: add /run/wrappers/bin to PATH
Without this the network module in polybar is unable to check
connection as it invokes 'ping' command directly.

(cherry picked from commit 604fc92943)
2019-02-11 01:21:05 +01:00
Robert Helgesson
708de1ac8d
xembed-sni-proxy: add module
(cherry picked from commit 008d93928f)
2019-02-11 01:21:04 +01:00
Jonas Holst Damtoft
7d6a6cbbe3
fish: use global for abbr
Makes fish use global scope for abbreviations.
This makes it so that they don't stick across config changes.
Before, an abbreviation would still exist even if removed from the config.

(cherry picked from commit 601619660d)
2019-02-11 01:21:04 +01:00
Robert Helgesson
6c30decf8d
i3: replace use of types.string by types.str
(cherry picked from commit 59a4ac71f9)
2019-02-11 01:21:04 +01:00
Robert Helgesson
4bed99c71c
files: allow a wider range of source file names
In particular support source files whose name start with `.` or
contain characters not allowed in the nix store, such as spaces.

Also add some test cases for `home.file`.

(cherry picked from commit 7c04351a57)
2019-02-11 01:21:04 +01:00
Adam Washington
a9e218dddd
matplotlib: add module
(cherry picked from commit 6a244b3a8d)
2019-02-11 01:21:03 +01:00
John Wiegley
3656bf1ad7
ssh: add proxyJump option
(cherry picked from commit 3cf8b9ea86)
2019-02-11 01:20:30 +01:00
Nadrieril
47450371d9
i3: add bar.extraConfig option
(cherry picked from commit df8a14e12a)
2019-02-11 01:20:30 +01:00
Nadrieril
e6bc17e7fb
i3: reallow using null to disable a keybinding
(cherry picked from commit d5cc53a4e1)
2019-02-11 01:20:29 +01:00
Robert Helgesson
9f013a8fb8
dunst: avoid error on missing dunst process
(cherry picked from commit 55100918cc)
2019-01-14 18:40:51 +01:00
Robert Helgesson
3c429c2462
dunst: kill daemon on configuration change
Since Dunst is DBus activated it is OK to simply kill it since DBus
will restart it when necessary.

(cherry picked from commit faee571850)
2019-01-14 18:40:51 +01:00
hyperfekt
f60f0c647f
fish: autogenerate completions from man pages
(cherry picked from commit 6f422785c3)
2019-01-14 18:40:51 +01:00
David Guibert
6d8a296625
msmtp: add extraConfig account option
This patch allow to define custom msmtp options per email account. For
example: to change the "auth" method from "on" to "login", add
`msmtp.extraConfig.auth="login"`.

(cherry picked from commit a7affc93ba)
2019-01-14 18:40:51 +01:00
Marcial Gaißert
2d77421d7c
programs.zsh: option localVariables
Add option "extraLocalVars" for additional local variable definitions
in .zshrc, at the top of the file.

Some zsh plugins/themes expect configuration in local variables before they
are loaded (example: https://github.com/bhilburn/powerlevel9k). Exporting
those clutters the environment and is unnecessary.

(cherry picked from commit 9052131aef)
2019-01-14 18:40:51 +01:00
Marcial Gaißert
257dcbcd8a
programs.zsh: generate export statements in zsh syntax
Use the new module lib.zsh to generate export statements in zsh syntax, using
zsh arrays for lists.

Being a zsh script, this seems more intuitive for .zshrc

(cherry picked from commit 6b5e0efd1e)
2019-01-14 18:40:50 +01:00
Marcial Gaißert
f221e4935d
lib.zsh: add module
Added utilities to generate export statements and definitions for zsh scripts.

Currently, there is only lib.shell which generates export statements in bash
syntax. However, this does not allow to generate export statements for zsh
arrays (syntax: NAME=(elem1 elem2 ...) ), which would be the natural
representation of lists in the nix language.

(cherry picked from commit 62eb7ebeba)
2019-01-14 18:40:50 +01:00
Wael M. Nasreddine
29161b6e21
autorandr: add support for xrandr transformation
(cherry picked from commit c48fd9d842)
2019-01-14 18:40:50 +01:00
Robert Helgesson
9e913a9a30
texlive: always require at least one extra package
Fixes #526

(cherry picked from commit e150dd4a66)
2019-01-14 18:40:50 +01:00
Olli Helenius
e57e34f799
gnome-terminal: enable VTE OSC7 support for bash and zsh
(cherry picked from commit b3d73e0aff)
2019-01-14 18:40:50 +01:00
Olli Helenius
af94896ba1
Address review comments
(cherry picked from commit 16946a6f00)
2019-01-14 18:40:50 +01:00
Olli Helenius
8026e4ff6f
zsh: add default keymap configuration
(cherry picked from commit a4383075af)
2019-01-14 18:40:50 +01:00