summary refs log tree commit diff
path: root/nixos/modules/services/misc/nix-daemon.nix
Commit message (Collapse)AuthorAge
* nixos/nix-daemon: work on buildMachines submoduleVincent Breitmoser2020-07-05
|
* nixos/nix-daemon: Organize buildMachine options with a submoduleJohn Ericson2020-07-05
|
* Don't enable nix-bash-completions when using Nix 2.4Eelco Dolstra2020-06-04
| | | | | 2.4 has its own completion script which collides with nix-bash-completions.
* Revert "nix-daemon.nix: Use 'nix ping-store' to initialize directories"Eelco Dolstra2020-05-07
| | | | | | | This reverts commits 9d0de0dc57ce97ab9cc3d73a66e914d718e4af3b, 27d2857a9927aa197b9679b9a2dcf59b97c06907. 'nix ping-store' is an experimental command so it doesn't work in Nix 2.4 unless you set 'experimental-features = nix-command' in nix.conf.
* treewide: use https for nixos.org and hydra.nixos.orgPavol Rusnak2020-05-03
| | | | | tarballs.nixos.org is omitted from the change because urls from there are always hashed and checked
* Revert "nixos: Introduce nix.buildLocation option"Michael Weiss2020-04-19
| | | | | | | | This reverts commit 5291925fd2486175e781669412fa5a525da7602a. Reason: This started to cause severe regressions, see: - https://github.com/NixOS/nixpkgs/issues/85552 - https://github.com/NixOS/nixpkgs/pull/83166#pullrequestreview-395960588 Fixes #85552.
* nixos: Introduce nix.buildLocation optionAlexander V. Nikolaev2020-04-18
| | | | | Allow to specify where package build will happens. It helps big packages (like browsers) not to overflow tmpfs.
* treewide: Per RFC45, remove all unquoted URLsMichael Reilly2020-04-10
|
* nixos: default nix.maxJobs to autoJörg Thalheim2020-04-07
| | | | | Instead of making the configuration less portable by hard coding the number of jobs equal to the cores we can also let nix set the same number at runtime.
* nix-daemon.nix: Add option nix.registryEelco Dolstra2020-04-02
| | | | | | | | | | | | | | | | | | | | | This allows you to specify the system-wide flake registry. One use is to pin 'nixpkgs' to the Nixpkgs version used to build the system: nix.registry.nixpkgs.flake = nixpkgs; where 'nixpkgs' is a flake input. This ensures that commands like $ nix run nixpkgs#hello pull in a minimum of additional store paths. You can also use this to redirect flakes, e.g. nix.registry.nixpkgs.to = { type = "github"; owner = "my-org"; repo = "my-nixpkgs"; };
* treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
|
* nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger2019-12-10
| | | | | | | | A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
* nix-daemon.nix: Fix checkConfigEelco Dolstra2019-10-23
|
* nixos/nix-daemon: don't refer to deprecated option aliasesedef2019-10-18
| | | | | | The `gc-` prefixed versions of these options have been deprecated since Nix 2.0.
* nix-daemon.nix: Shut up warningEelco Dolstra2019-10-10
|
* nix-daemon.nix: Use 'nix ping-store' to initialize directoriesEelco Dolstra2019-10-10
|
* nix-daemon.nix: Drop Nix 1.x compatibilityEelco Dolstra2019-10-10
| | | | Probably didn't work anyway anymore.
* Don't create /nix/var/nix/{gcroots,per-user}/per-user with 1777 permissionEelco Dolstra2019-10-10
| | | | | | | In fact, don't create them at all because Nix does that automatically. Also remove modules/programs/shell.nix because everything it did is now done automatically by Nix.
* nixos/nix-daemon: Prevent network warning when checking configSilvan Mosberger2019-09-28
| | | | | | | 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.
* Merge staging-next into stagingFrederik Rietdijk2019-08-31
|\
| * nix.conf: Set sandbox-fallback = falseEelco Dolstra2019-08-27
| | | | | | | | For security, we don't want the sandbox to be disabled silently.
* | treewide: remove redundant quotesvolth2019-08-26
|/
* nix-daemon: Fix builduser count to work when maxJobs is autoColin L Rice2019-08-01
|
* nix.binaryCaches: always set https://cache.nixos.orgDomen Kožar2019-06-26
| | | | | | | | | | | | | | | There are many support questions when people add a new binary cache and they suddenly lose nixos substitutions. Most of the users want to keep that, so we're doing a breaking change. Previously to disable all binary caches one had to do: nix.binaryCache = []; Now the same is possible via: nix.binaryCache = lib.mkForce;
* nix.systemFeatures: minor fixvolth2019-05-05
| | | | following up #59148 I forgot the default case of the architectures which do not have minor brothers whose code they can run ("westmere" or any of of AMD)
* nix.systemFeatures: minor refactorvolth2019-04-30
|
* compilation for particular x86_64 architecturevolth2019-04-30
|
* nixos: add preferLocalBuild=true; on derivations for config filesSymphorien Gibol2019-02-22
|
* nixos/nix-daemon: default to build with all cores availableJörg Thalheim2018-11-16
| | | | | | | | These days build systems are more robust w.r.t. to concurrency. Most users will have at least two cores in their machines. Therefore I suggest to increase the number of cores used for building. fixes #50376
* nixos/nix: ignore nix.checkConfig when cross-compiling (#48225)volth2018-11-09
| | | | | | | | * nixos/nix: ignore nix.checkConfig when cross-compiling the check always fails because of architecture mismatch * typos
* Merge pull request #46041 from nh2/issue-46038-nix-daemon-ssh-pathSilvan Mosberger2018-10-11
|\ | | | | nix-daemon service: Ensure `ssh` is on PATH. Fixes #46038.
| * nix-daemon service: Ensure `ssh` is on PATH. Fixes #46038.Niklas Hambüchen2018-09-04
| | | | | | | | | | | | | | | | | | | | This fixes a regression introduced in commit 700e21d6dac4683ef40f20127a6eb2a74b9bd8c6 nix needs ssh on path for the SSH substituter functionality, not only the distributed builds functionality. Signed-off-by: Niklas Hambüchen <mail@nh2.me>
* | nix-daemon: only add channels dir to NIX_PATH if existsWill Dietz2018-09-29
| | | | | | | | Per reviewer comment (thanks!).
* | NIX_PATH: don't prepend $HOME-based value in session variable, set laterWill Dietz2018-09-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | environment.sessionVariables cannot refer to the values of env vars, and as a result this has caused problems in a variety of scenarios. One use for these is that they're injected into /etc/profile, elewhere these are used to populate an 'envfile' for pam (`pam 5 pam_env.conf`) which mentions use of HOME being potentially problematic. Anyway if the goal is to make things easier for users, simply do the NIX_PATH modification as extraInit. This fixes the annoying problems generated by the current approach (#40165 and others) while hopefully serving the original goal. One way to check if things are borked is to try: $ sudo env | grep NIX_PATH Which (before this change) prints NIX_PATH variable with an unexpanded $HOME in the value. ------- This does mean the following won't contain user channels for 'will': $ sudo -u will nix-instantiate --eval -E builtins.nixPath However AFAICT currently they won't be present either, due to unescaped $HOME. Unsure if similar situation for other users of sessionVariables (not sudo) work with current situation (if they exist they will regress after this change AFAIK).
* | Revert "nixos: set nixos in nixPath"Eelco Dolstra2018-09-24
| | | | | | | | | | | | | | | | | | This reverts commit 67c8c4917799496dcf2ad6a500441fbbaeb918c9. 'nix run nixos.firefox' is *not* supposed to work - the Nix 2.x interface attempts to standardize on nixpkgs.*, to get rid of the nixos/nixpkgs confusion that existed with the channels interface. So let's not bring that confusion back.
* | nixos: set nixos in nixPathMatthew Bauer2018-09-23
|/ | | | | | | | | This makes using the nixos channel work out of the box with the new Nix commands. For example: $ nix run nixos.firefox -c firefox Fixes #46536
* Merge pull request #44880 from srghma/build-max-jobs-autoSilvan Mosberger2018-08-18
|\ | | | | nixos/nix-daemon: build-max-jobs, add support to auto
| * nixos/nix-daemon: build-max-jobs, add support to autosrghma2018-08-18
| |
* | nixos/nix-daemon: default `nix.useSandbox` to `true`.Andreas Rammhold2018-07-29
|/
* nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-30
|
* nixos/sandbox: improve documentation.Brandon Elam Barker2018-06-07
| | | | This was put together based on feedback from LnL on IRC.
* Merge remote-tracking branch 'upstream/master' into stagingTuomas Tynkkynen2018-05-22
|\
| * Stop requiring the nixpkgs symlink in NixOS channel tarballsDaniel Peebles2018-05-21
| | | | | | Ideally I'd like the whole `nixos`/`nixpkgs` channel distinction to disappear, but this is a step along that path. After a while being in this state, we can stop creating the magic `nixpkgs -> .` symlink inside our `nixos` channel tarballs and simplify that whole mess a bit.
* | Merge branch 'staging' into fix-ncurses-darwin-extensionsMatthew Justin Bauer2018-05-02
|\ \ | |/ |/|
| * nixos/nix-daemon: optionally (on by default) check nix.conf can be readWill Dietz2018-04-24
| | | | | | | | | | | | | | | | | | | | | | | | * checks using package providing the nix-daemon that we'll be using * made optional (unlike some other config checks) "just in case": since this requires running the new Nix on the builder, this won't work in a few (AFAIK very uncommon) situations such as cross-compiling NixOS or using `include` directives in nix.conf This does rely on Nix2 but not by the builder. Since we only offer Nix2+ in-tree this should be fine, and may otherwise be required anyway.
* | Merge pull request #38351 from grahamc/user-channelsGraham Christensen2018-05-01
|\ \ | |/ |/| Add user channels to the default nix path
| * Add user channels to the default nix pathGraham Christensen2018-05-01
| |
* | mkdir -> install -dEelco Dolstra2018-04-04
|/ | | | Fixes #38421.
* Remove obsolete /nix/var/nix/{manifests,channel-cache}Eelco Dolstra2018-03-20
|
* Merge branch 'master' into stagingJan Malakhovski2018-03-10
|\ | | | | | | | | | | | | | | | | | | | | Resolved the following conflicts (by carefully applying patches from the both branches since the fork point): pkgs/development/libraries/epoxy/default.nix pkgs/development/libraries/gtk+/3.x.nix pkgs/development/python-modules/asgiref/default.nix pkgs/development/python-modules/daphne/default.nix pkgs/os-specific/linux/systemd/default.nix