Silvan Mosberger
9e97e64847
lib/modules: Switch _module.args from attrsOf to lazyAttrsOf
2020-01-10 16:20:31 +01:00
Silvan Mosberger
ab10e87414
lib/tests: Add tests for attrsOf and lazyAttrsOf
2020-01-10 16:20:31 +01:00
Silvan Mosberger
b48717d1eb
lib/types: Introduce lazyAttrsOf
...
The standard attrsOf is strict in its *values*, meaning it's impossible to
access only one attribute value without evaluating all others as well.
lazyAttrsOf is a version that doesn't have that problem, at the expense
of conditional definitions not properly working anymore.
2020-01-10 16:19:55 +01:00
Silvan Mosberger
d5a2922641
nixos/doc: Note that attrsOf is strict in its values
2020-01-10 16:19:54 +01:00
Silvan Mosberger
130a0c9878
lib/modules: Move the isDefined check into mergedValue
...
Without this change, accessing `mergedValue` from `mergeDefinitions` in
case there are no definitions will throw an error like
error: evaluation aborted with the following error message: 'This case should never happen.'
This change makes it throw the appropriate error
error: The option `foo' is used but not defined.
This is fully backwards compatible.
2020-01-10 16:19:54 +01:00
Silvan Mosberger
f124b7addc
nixos/znapzend: Increase starting timeout
2019-10-27 12:29:31 +01:00
Silvan Mosberger
698dfed2e6
nixos/znapzend: Add options for features
2019-10-27 12:06:18 +01:00
Silvan Mosberger
5532065d06
nixos/acme: Fix allowKeysForGroup not applying immediately
...
Previously setting `allowKeysForGroup = true; group = "foo"` would not
apply the group permission change of the certificates until the service
gets restarted. This commit fixes this by making systemd restart the
service every time it changes.
Note that applying this commit to a system with an already running acme
systemd service doesn't fix this immediately and you still need to wait
for the next refresh (or call `systemctl restart acme-<domain>`). Once
everybody's service has restarted once this should be a problem of the
past.
2019-10-27 00:49:32 +02:00
Silvan Mosberger
f9113fc063
haskellPackages.nix-tools: Fix build
2019-10-18 22:50:37 +02:00
Silvan Mosberger
23d920c8f0
nixos/users: Increase maximum system uid/gid from 499 to 999
...
This enlarges the system uid/gid range 6-fold, from 100 to 600 ids. This
is a preventative measure against running out of dynamically allocated
ids for NixOS services with isSystemUser, which should become the
preferred way of allocating uids for non-real users.
2019-10-14 01:59:19 +02:00
Silvan Mosberger
27605cebae
mumble/murmur: Fix .override not working
...
Unfortunately there's no pkgs.libsForQt5.callPackages, which we need here to
get .override attributes on all derivation attributes. It's also
non-trivial to add it without duplicating code.
So instead just use standard pkgs.callPackages and pass refer to qt libs
through pkgs.qt5
2019-10-08 01:46:11 +02:00
Silvan Mosberger
e463c7cd75
nixos/nix-daemon: Prevent network warning when checking config
...
Since version 2.3 (https://github.com/NixOS/nix/pull/2949 which was
cherry-picked to master) Nix issues a warning when --no-net wasn't
passed and there is no network interface. This commit adds the --no-net
flag to the nix.conf check such that no warning is issued.
2019-09-28 17:00:47 +02:00
Silvan Mosberger
ebb136da9f
lib.mkRemovedOptionModule: Show replacement for option usage too
...
Previously mkRemovedOptionModule would only show the replacement
instructions when the removed option was *defined*. With this change, it
also does so when an option is *used*.
This is essential for options that are only intended to be used such as
`security.acme.directory`, whose replacement instructions would never
trigger without this change because almost everybody only uses the
option and isn't defining it.
2019-09-28 04:10:22 +02:00
Silvan Mosberger
e686b39288
nixos/redshift: Add rename for provider option
...
This was an oversight in https://github.com/NixOS/nixpkgs/pull/64309
resulting it backwards incompatibilities
2019-09-15 18:26:53 +02:00
Silvan Mosberger
ecf5f85a81
nixos/redshift: Move option renames to the module
2019-09-15 18:25:40 +02:00
Silvan Mosberger
b7f54d4ffa
radicale: Fix runtime
...
Needed pkg_resources module, which apparently comes from setuptools
according to https://stackoverflow.com/a/10538412/6605742
2019-09-14 00:56:19 +02:00
Silvan Mosberger
a4896cb4aa
lib/makeOverridable: Refactor
...
- Rename ff to result because that's what it is
- Better indentation
- Less parens
- Comment what overrideWith does
2019-09-05 00:57:55 +02:00
Silvan Mosberger
23e72eff41
lib/makeOverridable: Remove unimplemented overrideDerivation for functions
...
- Apparently nobody ever needed this
- We already have enough ways to override things
- Using overrideDerivation is discouraged
2019-09-05 00:57:22 +02:00
Silvan Mosberger
c638dac226
lib/makeOverridable: Propagate function args of the callPackage'd function
...
This allows querying function arguments of things like fetchFromGitHub:
nix-repl> lib.functionArgs pkgs.fetchFromGitHub
{ fetchSubmodules = true; githubBase = true; ... }
2019-09-05 00:57:04 +02:00
Silvan Mosberger
d54bdf5504
lib/makeOverridable: Propagate function arguments to override functions
...
This allows querying the arguments you can .override:
nix-repl> lib.functionArgs pkgs.hello.override
{ fetchurl = false; stdenv = false; }
2019-09-05 00:56:39 +02:00
Silvan Mosberger
e140d709c4
lib/makeOverridable: Abstract result overriding
2019-09-05 00:56:11 +02:00
Silvan Mosberger
a75080f58c
lib/makeOverridable: Deduplicate override definition
...
And call it overrideArgs in the let binding because that's what it does
2019-09-05 00:54:03 +02:00
Silvan Mosberger
03391cd336
lib/types: Make usage of types.string emit a warning
2019-08-31 18:19:15 +02:00
Silvan Mosberger
478e7184f8
nixos/modules: Remove all usages of types.string
...
And replace them with a more appropriate type
Also fix up some minor module problems along the way
2019-08-31 18:19:00 +02:00
Silvan Mosberger
a41af6a27b
gimp: Fix derivation detection
2019-08-31 06:50:42 +02:00
Silvan Mosberger
89636b9a5e
nix-prefetch-git: Remove some pack file non-determinism
2019-08-31 01:16:50 +02:00
Silvan Mosberger
7f6a9eef26
crystal: Fix runtime by switching to openssl_1_0_2
...
This makes `crystal play` work
2019-08-29 03:31:14 +02:00
Silvan Mosberger
1d0749139d
docs: Add Crystal language framework section
2019-08-26 20:12:15 +02:00
Silvan Mosberger
2f92cd6960
mint: Use buildCrystalPackage
2019-08-26 20:05:23 +02:00
Silvan Mosberger
1ffdf01777
crystal2nix: Put it into pkgs
2019-08-26 18:23:55 +02:00
Silvan Mosberger
a3aec20f26
Implement crystal.buildCrystalPackage
2019-08-26 18:22:55 +02:00
Silvan Mosberger
8c60f67f2d
mint: Fix build
2019-08-26 16:31:48 +02:00
Silvan Mosberger
2c69d30e29
haskellPackages.idris: Fix build
...
Can build with default megaparsec now
2019-08-19 10:52:30 +02:00
Silvan Mosberger
0cc8dfca43
doc: Replace google groups reference with Discourse Patch category
2019-08-17 12:43:30 +02:00
Silvan Mosberger
087e33c2a6
hackage2nix: Unmark pantry and http-download as broken
...
See https://github.com/NixOS/nixpkgs/pull/66495
2019-08-15 16:05:09 +02:00
Silvan Mosberger
029961f63d
hackage2nix: Unmark hpack as broken
...
See https://github.com/NixOS/nixpkgs/pull/66495
2019-08-15 16:05:09 +02:00
Silvan Mosberger
aa26fbfcbe
syncthing-gtk: gdk_pixbuf -> gdk-pixbuf
2019-08-12 01:02:06 +02:00
Silvan Mosberger
f5c793ecb4
haskellPackages: Unmark hpack, pantry and http-download as broken
...
Fixes evaluation of stack
2019-08-12 01:00:24 +02:00
Silvan Mosberger
ca3820dd00
nixos/misc: Fix nixpkgs.config merge function
...
Previously nested attrsets would override each other
2019-08-10 20:03:11 +02:00
Silvan Mosberger
de9cb24938
lib/modules: Use options apply function even if no values are defined
...
This allows `apply` functions to return a valid value if they completely
ignore their argument, which is the case for the option renaming
functions like `mkAliasOptionModule`. Therefore this solves issue #63693
2019-08-10 00:56:56 +02:00
Silvan Mosberger
88bb9fa403
nixos/modules: Replace all nested types.either's with types.oneOf's
2019-08-08 23:35:52 +02:00
Silvan Mosberger
9a44f44d4c
lib/types: Add oneOf, extension of either to a list of types
2019-08-06 14:08:42 +02:00
Silvan Mosberger
12d815161a
hackage2nix: Unmark discord-haskell as broken
...
https://github.com/NixOS/nixpkgs/issues/58987
2019-08-03 17:33:27 +02:00
Silvan Mosberger
1e2d93cfcd
idrisPackages: Fix overrides not applying
...
Previously when overriding idrisPackages, it wouldn't work properly because it
took idrisPackages from the pkgs set
2019-08-02 16:42:21 +02:00
Silvan Mosberger
12eb0f524b
nixos/tests: Reenable couchdb
...
Works just fine in current master
2019-07-24 20:53:02 +02:00
Silvan Mosberger
5e974362be
nixos/couchdb: Prevent it from chowning /var/log to couchdb:couchdb
...
The default for logFile is /var/log/couchdb.log, and the tmpfile rules chown
${dirOf cfg.logFile}, which is just /var/log, to couchdb:couchdb.
This was found by Edes' report on IRC, which looked like
Detected unsafe path transition /var/log → /var/log/journal during canonicalization of /var/log/journal
While this bug has been present since the initial couchdb module in
62438c09f7 by @garbas, this wasn't a
problem, because the initial module only created and chowned /var/log
if it didn't exist yet, which can't occur because this gets created in
the initial phases of NixOS startup.
However with the recent move from manual preStart chown scripts to
systemd.tmpfiles.rules in 062efe018d (#59389 ),
this chown is suddenly running unconditionally at every system
activation, therefore triggering the above error.
2019-07-24 20:52:53 +02:00
Silvan Mosberger
33b7c5099a
haskell2nix: Unmark Chart-related packages as broken
...
These all built just fine
2019-07-07 13:06:22 +02:00
Silvan Mosberger
c1f08d7c95
pythonPackages.soco: 0.16 -> 0.17
...
Now works with latest pytestcov
This transitively fixes beets which depends on soco, which now doesn't depend on
pytest_3 anymore, which depends on pytestcov_3, which is broken.
2019-07-06 12:19:26 +02:00
Silvan Mosberger
9d79dc5fb8
hackagePackages: Fix build for butcher (-> brittany as well)
2019-07-04 09:41:23 +02:00
Silvan Mosberger
8ac6e24571
haskellPackages: Don't ignore overrides
...
This prevented haskell.packages.${compiler} overlays from propagating
to haskellPackages.
2019-06-27 23:20:29 +02:00
Silvan Mosberger
8fb630b26c
maintainers: Update my email
2019-06-22 21:11:13 +02:00
Silvan Mosberger
852fe410fc
nixos/zfs: Remove requestEncryptionCredentials assertion
...
zfs >= 0.8 supporting encryption is now stable
2019-06-21 03:33:09 +02:00
Silvan Mosberger
ba3a834b75
doc/idris: Fix install instructions ( #63163 )
...
doc/idris: Fix install instructions
2019-06-19 17:10:21 +02:00
Silvan Mosberger
eda8c36795
doc/idris: Fix install instructions
...
Because of nix-env weirdness, I introduced a mistake in the docs in
https://github.com/NixOS/nixpkgs/pull/50182 , this fixes it.
2019-06-15 18:25:41 +02:00
Silvan Mosberger
c382915e28
haskell.compiler.ghcHEAD: 20190115 -> 20190601
2019-06-12 00:20:35 +02:00
Silvan Mosberger
1d512f5870
haskellPackages: clean up some overrides
...
- jailbreak-cabal override isn't needed, shared executables are disabled
by default (or is this precautionary?)
- Removed and added some infinite recursion overrides, moved them to
configuration-nix.nix
- Unbreak zstd and attparsec-varword
- mysql override is already in configuration-nix.nix
- Move some overrides for disabling tests due to internet connectivity
to configuration-nix.nix
Closes https://github.com/NixOS/nixpkgs/pull/62407 .
2019-06-07 10:07:39 +02:00
Silvan Mosberger
08f2e282e1
nixos/deluge: add autFile, config and port options ( #58552 )
...
nixos/deluge: add autFile, config and port options
2019-06-04 23:16:06 +02:00
Silvan Mosberger
b13df4545c
trinity: small clean up
2019-06-04 16:00:29 +02:00
Silvan Mosberger
45d7270579
haskellPackages.heap: Fix build
2019-06-04 10:26:11 +02:00
Silvan Mosberger
b9ffded489
jack module: init ( #57712 )
...
jack module: init
2019-06-03 19:18:04 +02:00
Silvan Mosberger
16a2f5a346
tahoe-lafs: Fix build
2019-05-29 21:48:47 +02:00
Silvan Mosberger
eb9a9bb22a
Merge pull request #62174 from Infinisil/fix/pingus
...
pingus: Fix build
2019-05-29 01:30:38 +02:00
Silvan Mosberger
a1ed58d6a8
pingus: Fix build
2019-05-28 23:20:41 +02:00
Silvan Mosberger
875a015e12
Merge pull request #62166 from Infinisil/fix/python-dynd
...
python3Packages.dynd: Fix build
2019-05-28 22:25:46 +02:00
Silvan Mosberger
91d18c0f4b
python3Packages.dynd: Fix build
2019-05-28 20:45:56 +02:00
Silvan Mosberger
b4e16b6c30
Merge pull request #62112 from Lassulus/writers-check
...
build-support/writers: actually run checks
2019-05-28 12:07:22 +02:00
Silvan Mosberger
812e9d6928
Merge pull request #62103 from eadwu/vscode-extensions/update-1
...
vscode-extensions: 2019-05-26
2019-05-28 03:23:30 +02:00
Silvan Mosberger
8d8e041b18
Merge pull request #61813 from r-ryantm/auto-update/heimdal
...
heimdal: 7.5.0 -> 7.6.0
2019-05-28 03:14:05 +02:00
Silvan Mosberger
030eb35a49
Merge pull request #62115 from markuskowa/fix-gr-rename
...
gnuradio: rename plugins gnuradio-* -> gr-*
2019-05-28 03:10:56 +02:00
Silvan Mosberger
2762950a8a
osquery: 3.2.9 -> 3.3.2 ( #62099 )
...
osquery: 3.2.9 -> 3.3.2
2019-05-28 03:09:45 +02:00
Silvan Mosberger
75288c35d0
Merge pull request #62119 from lsix/qgis_3_4_8
...
qgis: 3.4.7 -> 3.4.8
2019-05-28 02:55:57 +02:00
Silvan Mosberger
cc06576060
Merge pull request #61792 from saschagrunert/cri-o-all-packages
...
cri-o: update to all packages
2019-05-28 02:55:10 +02:00
Silvan Mosberger
72aec1114d
pythonPackages.streamz: Fix build ( #62126 )
...
pythonPackages.streamz: Fix build
2019-05-28 02:53:45 +02:00
Silvan Mosberger
268a7327ee
Merge pull request #62129 from gnidorah/geeqie
...
geeqie: use wrapGAppsHook
2019-05-28 02:53:25 +02:00
Silvan Mosberger
99b68ffbb0
chromium: Fix build
...
Since https://github.com/NixOS/nixpkgs/pull/60499 , the unwrapped
chromium already contains the applications directory.
2019-05-28 02:33:00 +02:00
Silvan Mosberger
68cae99370
Merge pull request #61742 from abbradar/lutris
...
lutris: init at 0.5.2.1
2019-05-27 20:21:12 +02:00
Silvan Mosberger
16c66f66ae
scalapack: Increase individual test timeout to prevent hydra failures
2019-05-27 20:08:32 +02:00
Silvan Mosberger
9253e2883f
pythonPackages.streamz: Fix build
...
Can't test tcp in the sandbox
2019-05-27 19:11:35 +02:00
Silvan Mosberger
2dd05f18c7
Merge pull request #62075 from Kiwi/new-zncModules
...
New znc modules
2019-05-27 18:40:18 +02:00
Silvan Mosberger
d824a3724b
Merge pull request #62087 from marsam/update-nv-codec-headers
...
nv-codec-headers: 8.2.15.6 -> 9.0.18.1
2019-05-27 18:39:34 +02:00
Silvan Mosberger
dd12269b78
Merge pull request #60250 from JohnAZoidberg/icu64
...
icu: 59 -> 64
2019-05-27 18:31:57 +02:00
Silvan Mosberger
526a0b2277
Merge pull request #60499 from JohnAZoidberg/chromium-upstream-desktop-entry
...
chromium: Use upstream desktop entry
2019-05-27 18:28:20 +02:00
Silvan Mosberger
e383ed6a2d
nixos/xdg/mime: disable fdatasync when building the XDG MIME database ( #62076 )
...
nixos/xdg/mime: disable fdatasync when building the XDG MIME database
2019-05-27 18:18:54 +02:00
Silvan Mosberger
254cccd22d
Merge pull request #62085 from michaelpj/fix/fprintd-sysconfdir
...
fprintd: set sysconfdir
2019-05-27 18:05:35 +02:00
Silvan Mosberger
b6a959b59e
Merge pull request #62040 from abbradar/chrootenv-extend
...
buildFHSUserEnv: extend PATH and LD_LIBRARY_PATH
2019-05-27 17:56:04 +02:00
Silvan Mosberger
e1736387fb
Merge pull request #62090 from c0bw3b/pkg/compactor
...
libtins: 4.0 -> 4.2 / compactor: 0.11.1 -> 0.12.2
2019-05-27 17:53:36 +02:00
Silvan Mosberger
55014a0947
Fix chrootenv segfaulting on exit ( #62091 )
...
Fix chrootenv segfaulting on exit
2019-05-27 17:51:49 +02:00
Silvan Mosberger
41c33668a0
cargo-make: 0.19.1 -> 0.19.2 ( #62077 )
...
cargo-make: 0.19.1 -> 0.19.2
2019-05-27 15:21:34 +02:00
Silvan Mosberger
56b28d9e15
Pin filesystem type on Google Compute Engine image to ext4 ( #61860 )
...
Pin filesystem type on Google Compute Engine image to ext4
2019-05-27 15:20:58 +02:00
Silvan Mosberger
9f6e78f23a
tmatrix: init at 1.0
2019-05-27 05:06:40 +02:00
Silvan Mosberger
c6a9902b42
Merge pull request #60785 from mnacamura/cdda-updates
...
cataclysm-dda{,-git}: bump version
2019-05-26 23:25:51 +02:00
Silvan Mosberger
aacc24826e
Merge pull request #62086 from marsam/update-parallel
...
parallel: 20190422 -> 20190522
2019-05-26 22:50:17 +02:00
Silvan Mosberger
6e46d0b72a
Merge pull request #61530 from thedavidmeister/2019-05-15-patchwork
...
patchwork: init at 3.11.4
2019-05-26 20:45:13 +02:00
Silvan Mosberger
841fb9486e
Merge pull request #62088 from michaelpj/fix/fprintd-state-dir
...
nixos: add `StateDirectory` for fprintd
2019-05-26 19:21:06 +02:00
Silvan Mosberger
0040ca936e
Merge pull request #56175 from MostAwesomeDude/tahoe-service
...
Fix tahoe service
2019-05-25 21:53:23 +02:00
Silvan Mosberger
e4fe0dc9a2
imagemagick7: 7.0.8-34 -> 7.0.8-46 ( #61836 )
...
imagemagick7: 7.0.8-34 -> 7.0.8-46
2019-05-25 01:50:21 +02:00
Silvan Mosberger
953c81d1a4
nixos/prosody: add authentication option ( fixes #53134 ) ( #61051 )
...
nixos/prosody: add authentication option (fixes #53134 )
2019-05-25 00:17:14 +02:00
Silvan Mosberger
4c1bf57f37
imagemagick: Remove obsolete patch
...
According to https://www.imagemagick.org/discourse-server/viewtopic.php?f=4&t=29588
this has been mitigated in versions 6.9.4-7 and 7.0.1-9, which we're well
past already.
2019-05-24 23:43:01 +02:00
Silvan Mosberger
3556df6247
Merge pull request #61686 from georgewhewell/broadcom-sta
...
broadcom_sta: fix build on linux-5.1
2019-05-24 23:37:36 +02:00
Silvan Mosberger
f631167557
Merge pull request #58702 from florianjacob/fix-mysql
...
nixos/mysql: fix typing-induced bugs
2019-05-24 19:51:54 +02:00