Rewrite ‘with pkgs.lib’ -> ‘with lib’

Using pkgs.lib on the spine of module evaluation is problematic
because the pkgs argument depends on the result of module
evaluation. To prevent an infinite recursion, pkgs and some of the
modules are evaluated twice, which is inefficient. Using ‘with lib’
prevents this problem.
wip/yesman
Eelco Dolstra 10 years ago
parent 4f2aa2f706
commit 29027fd1e1
  1. 4
      nixos/doc/manual/development.xml
  2. 4
      nixos/modules/config/fonts/corefonts.nix
  3. 4
      nixos/modules/config/fonts/fontconfig.nix
  4. 4
      nixos/modules/config/fonts/fontdir.nix
  5. 4
      nixos/modules/config/fonts/fonts.nix
  6. 4
      nixos/modules/config/fonts/ghostscript.nix
  7. 4
      nixos/modules/config/gnu.nix
  8. 4
      nixos/modules/config/i18n.nix
  9. 4
      nixos/modules/config/krb5.nix
  10. 4
      nixos/modules/config/ldap.nix
  11. 4
      nixos/modules/config/networking.nix
  12. 4
      nixos/modules/config/no-x-libs.nix
  13. 4
      nixos/modules/config/nsswitch.nix
  14. 4
      nixos/modules/config/power-management.nix
  15. 4
      nixos/modules/config/pulseaudio.nix
  16. 4
      nixos/modules/config/shells-environment.nix
  17. 4
      nixos/modules/config/swap.nix
  18. 4
      nixos/modules/config/sysctl.nix
  19. 4
      nixos/modules/config/system-path.nix
  20. 4
      nixos/modules/config/timezone.nix
  21. 4
      nixos/modules/config/unix-odbc-drivers.nix
  22. 4
      nixos/modules/config/users-groups.nix
  23. 4
      nixos/modules/hardware/all-firmware.nix
  24. 4
      nixos/modules/hardware/cpu/amd-microcode.nix
  25. 4
      nixos/modules/hardware/cpu/intel-microcode.nix
  26. 4
      nixos/modules/hardware/network/b43.nix
  27. 4
      nixos/modules/hardware/pcmcia.nix
  28. 4
      nixos/modules/hardware/video/bumblebee.nix
  29. 4
      nixos/modules/installer/cd-dvd/channel.nix
  30. 4
      nixos/modules/installer/cd-dvd/installation-cd-base.nix
  31. 4
      nixos/modules/installer/cd-dvd/installation-cd-graphical.nix
  32. 4
      nixos/modules/installer/cd-dvd/iso-image.nix
  33. 4
      nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix
  34. 4
      nixos/modules/installer/cd-dvd/system-tarball-pc.nix
  35. 4
      nixos/modules/installer/cd-dvd/system-tarball-sheevaplug.nix
  36. 4
      nixos/modules/installer/cd-dvd/system-tarball.nix
  37. 4
      nixos/modules/installer/scan/detected.nix
  38. 4
      nixos/modules/installer/scan/not-detected.nix
  39. 4
      nixos/modules/installer/tools/nixos-checkout.nix
  40. 4
      nixos/modules/installer/tools/tools.nix
  41. 4
      nixos/modules/installer/virtualbox-demo.nix
  42. 4
      nixos/modules/misc/assertions.nix
  43. 4
      nixos/modules/misc/check-config.nix
  44. 4
      nixos/modules/misc/crashdump.nix
  45. 4
      nixos/modules/misc/locate.nix
  46. 4
      nixos/modules/misc/nixpkgs.nix
  47. 4
      nixos/modules/misc/version.nix
  48. 4
      nixos/modules/profiles/clone-config.nix
  49. 4
      nixos/modules/profiles/headless.nix
  50. 6
      nixos/modules/profiles/installation-device.nix
  51. 4
      nixos/modules/programs/atop.nix
  52. 4
      nixos/modules/programs/bash/bash.nix
  53. 4
      nixos/modules/programs/bash/command-not-found.nix
  54. 4
      nixos/modules/programs/environment.nix
  55. 4
      nixos/modules/programs/shadow.nix
  56. 4
      nixos/modules/programs/shell.nix
  57. 4
      nixos/modules/programs/ssh.nix
  58. 4
      nixos/modules/programs/ssmtp.nix
  59. 4
      nixos/modules/programs/venus.nix
  60. 4
      nixos/modules/programs/virtualbox.nix
  61. 4
      nixos/modules/programs/wvdial.nix
  62. 4
      nixos/modules/programs/zsh/zsh.nix
  63. 4
      nixos/modules/rename.nix
  64. 4
      nixos/modules/security/apparmor-suid.nix
  65. 4
      nixos/modules/security/apparmor.nix
  66. 4
      nixos/modules/security/ca.nix
  67. 4
      nixos/modules/security/duosec.nix
  68. 4
      nixos/modules/security/grsecurity.nix
  69. 4
      nixos/modules/security/pam.nix
  70. 4
      nixos/modules/security/pam_usb.nix
  71. 4
      nixos/modules/security/polkit.nix
  72. 4
      nixos/modules/security/prey.nix
  73. 4
      nixos/modules/security/rngd.nix
  74. 4
      nixos/modules/security/rtkit.nix
  75. 4
      nixos/modules/security/setuid-wrappers.nix
  76. 4
      nixos/modules/security/sudo.nix
  77. 4
      nixos/modules/services/amqp/activemq/default.nix
  78. 4
      nixos/modules/services/amqp/rabbitmq.nix
  79. 4
      nixos/modules/services/audio/alsa.nix
  80. 4
      nixos/modules/services/audio/fuppes.nix
  81. 4
      nixos/modules/services/audio/mpd.nix
  82. 4
      nixos/modules/services/backup/almir.nix
  83. 4
      nixos/modules/services/backup/bacula.nix
  84. 4
      nixos/modules/services/backup/mysql-backup.nix
  85. 4
      nixos/modules/services/backup/postgresql-backup.nix
  86. 4
      nixos/modules/services/backup/rsnapshot.nix
  87. 4
      nixos/modules/services/backup/sitecopy-backup.nix
  88. 4
      nixos/modules/services/backup/tarsnap.nix
  89. 4
      nixos/modules/services/continuous-integration/jenkins/default.nix
  90. 4
      nixos/modules/services/continuous-integration/jenkins/slave.nix
  91. 4
      nixos/modules/services/databases/4store-endpoint.nix
  92. 4
      nixos/modules/services/databases/4store.nix
  93. 5
      nixos/modules/services/databases/couchdb.nix
  94. 4
      nixos/modules/services/databases/firebird.nix
  95. 4
      nixos/modules/services/databases/memcached.nix
  96. 4
      nixos/modules/services/databases/monetdb.nix
  97. 4
      nixos/modules/services/databases/mongodb.nix
  98. 4
      nixos/modules/services/databases/mysql.nix
  99. 4
      nixos/modules/services/databases/openldap.nix
  100. 4
      nixos/modules/services/databases/postgresql.nix
  101. Some files were not shown because too many files have changed in this diff Show More

@ -188,9 +188,9 @@ commands to be executed periodically by <command>cron</command>).</para>
<example xml:id='locate-example'><title>NixOS module for the “locate” service</title>
<programlisting>
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let locatedb = "/var/cache/locatedb"; in

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
options = {

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
with pkgs;
let

@ -1,8 +1,8 @@
# /etc files related to networking, such as /etc/services.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
options = {

@ -1,8 +1,8 @@
# Configuration for the Name Service Switch (/etc/nsswitch.conf).
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
with pkgs;
let

@ -1,9 +1,9 @@
# This module defines a global environment configuration and
# a common configuration for all shells.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, utils, ... }:
{ config, lib, pkgs, utils, ... }:
with pkgs.lib;
with lib;
with utils;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,9 +1,9 @@
# This module defines the packages that appear in
# /run/current-system/sw.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
options = {

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
# unixODBC drivers (this solution is not perfect.. Because the user has to
# ask the admin to add a driver.. but it's simple and works

@ -1,6 +1,6 @@
{pkgs, config, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let kernelVersion = config.boot.kernelPackages.kernel.version; in

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
let kernel = config.boot.kernelPackages; in
with pkgs.lib;
with lib;
{

@ -1,9 +1,9 @@
# Provide an initial copy of the NixOS channel so that the user
# doesn't need to run "nix-channel --update" first.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,9 +1,9 @@
# This module contains the basic configuration for building a NixOS
# installation CD.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
imports =

@ -1,9 +1,9 @@
# This module defines a NixOS installation CD that contains X11 and
# KDE 4.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
imports = [ ./installation-cd-base.nix ../../profiles/graphical.nix ];

@ -2,9 +2,9 @@
# configuration. The derivation for the ISO image will be placed in
# config.system.build.isoImage.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,9 +1,9 @@
# This module contains the basic configuration for building a NixOS
# tarball, that can directly boot, maybe using PXE or unpacking on a fs.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,9 +1,9 @@
# This module contains the basic configuration for building a NixOS
# tarball for the sheevaplug.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -2,9 +2,9 @@
# configuration. The derivation for the ISO image will be placed in
# config.system.build.tarball.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,8 +1,8 @@
# List all devices which are detected by nixos-hardware-scan.
# Common devices are enabled by default.
{config, pkgs, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
config = mkDefault {

@ -1,8 +1,8 @@
# List all devices which are _not_ detected by nixos-hardware-scan.
# Common devices are enabled by default.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
hardware.enableAllFirmware = true;

@ -1,9 +1,9 @@
# This module generates the nixos-checkout script, which replaces the
# Nixpkgs source trees in /etc/nixos/nixpkgs with a Git checkout.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -80,9 +80,9 @@ in
/*
options = {
installer.enableGraphicalTools = pkgs.lib.mkOption {
installer.enableGraphicalTools = mkOption {
default = false;
type = with pkgs.lib.types; bool;
type = types.bool;
example = true;
description = ''
Enable the installation of graphical tools.

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
imports =

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ lib, ... }:
with pkgs.lib;
with lib;
{
options = {

@ -1,6 +1,6 @@
{pkgs, config, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
crashdump = config.boot.crashDump;

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
isConfig = x:

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, modules, ... }:
{ config, lib, pkgs, modules, ... }:
with pkgs.lib;
with lib;
let

@ -1,9 +1,9 @@
# Common configuration for headless machines (e.g., Amazon EC2
# instances).
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
sound.enable = false;

@ -1,7 +1,7 @@
# Provide a basic configuration for installation devices like CDs.
{ config, pkgs, modules, ... }:
{ config, lib, ... }:
with pkgs.lib;
with lib;
{
imports =
@ -45,7 +45,7 @@ with pkgs.lib;
# Enable wpa_supplicant, but don't start it by default.
networking.wireless.enable = true;
jobs.wpa_supplicant.startOn = pkgs.lib.mkOverride 50 "";
jobs.wpa_supplicant.startOn = mkOverride 50 "";
# Tell the Nix evaluator to garbage collect more aggressively.
# This is desirable in memory-constrained environments that don't

@ -1,8 +1,8 @@
# Global configuration for atop.
{config, pkgs, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let cfg = config.programs.atop;

@ -1,9 +1,9 @@
# This module defines global configuration for the Bash shell, in
# particular /etc/bashrc and /etc/profile.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -3,9 +3,9 @@
# SQLite database that maps program names to Nix package names (e.g.,
# "pdflatex" is mapped to "tetex").
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -2,9 +2,9 @@
# Most of the stuff here should probably be moved elsewhere sometime.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,8 +1,8 @@
# Configuration for the pwdutils suite of tools: passwd, useradd, etc.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,8 +1,8 @@
# This module defines a standard configuration for NixOS shells.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,8 +1,8 @@
# Global configuration for the SSH client.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let cfg = config.programs.ssh;
cfgd = config.services.openssh;

@ -3,9 +3,9 @@
# directly to an SMTP server defined in its configuration file, wihout
# queueing mail locally.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{config, pkgs, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
cfg = config.services.venus;

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let virtualbox = config.boot.kernelPackages.virtualbox; in

@ -1,8 +1,8 @@
# Global configuration for wvdial.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,8 +1,8 @@
# This module defines global configuration for the zshell.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, options, ... }:
{ config, lib, options, ... }:
with pkgs.lib;
with lib;
let

@ -1,8 +1,8 @@
{pkgs, config, ...}:
{ config, lib, pkgs, ... }:
let
cfg = config.security.apparmor;
in
with pkgs.lib;
with lib;
{
options.security.apparmor.confineSUIDApplications = mkOption {

@ -1,10 +1,10 @@
{pkgs, config, ...}:
{ config, lib, pkgs, ... }:
let
cfg = config.security.apparmor;
in
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
cfg = config.security.duosec;

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
cfg = config.security.grsecurity;

@ -1,9 +1,9 @@
# This module provides configuration for the PAM (Pluggable
# Authentication Modules) system.
{config, pkgs, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{config, pkgs, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{config, pkgs, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
cfg = config.services.prey;

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{
options = {

@ -1,9 +1,9 @@
# A module for ‘rtkit’, a DBus system service that hands out realtime
# scheduling priority to processes that ask for it.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
{

@ -1,6 +1,6 @@
{pkgs, config, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{pkgs, config, ...}:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
with pkgs;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
cfg = config.services.rabbitmq;

@ -1,7 +1,7 @@
# ALSA sound support.
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,10 +1,10 @@
{config, pkgs, ...}:
{ config, lib, pkgs, ... }:
let
cfg = config.services.fuppesd;
in
with pkgs.lib;
with lib;
{
options = {

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
cfg = config.services.almir;

@ -1,9 +1,9 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
# TODO: test configuration when building nixexpr (use -t parameter)
# TODO: support sqlite3 (it's deprecate?) and mysql
with pkgs.lib;
with lib;
let
libDir = "/var/lib/bacula";

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
inherit (pkgs) postgresql gzip;

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let cfg = config.services.rsnapshot;
in

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
inherit (pkgs) sitecopy;

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let
cfg = config.services.tarsnap;

@ -1,5 +1,5 @@
{ config, pkgs, ... }:
with pkgs.lib;
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.jenkins;
in {

@ -1,5 +1,5 @@
{ config, pkgs, ... }:
with pkgs.lib;
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.jenkinsSlave;
masterCfg = config.services.jenkins;

@ -1,10 +1,10 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.services.fourStoreEndpoint;
endpointUser = "fourstorehttp";
run = "${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${endpointUser} -c";
in
with pkgs.lib;
with lib;
{
###### interface

@ -1,11 +1,11 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.services.fourStore;
stateDir = "/var/lib/4store";
fourStoreUser = "fourstore";
run = "${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${fourStoreUser}";
in
with pkgs.lib;
with lib;
{
###### interface

@ -1,5 +1,6 @@
{ config, pkgs, ... }:
with pkgs.lib;
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.couchdb;

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
# TODO: This may file may need additional review, eg which configuartions to
# expose to the user.
@ -19,7 +19,7 @@
# Eg superserver is said to be most efficiently using resources according to
# http://www.firebirdsql.org/manual/qsg25-classic-or-super.html
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,9 +1,9 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.services.monetdb;
monetdbUser = "monetdb";
in
with pkgs.lib;
with lib;
{
###### interface

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
with pkgs.lib;
with lib;
let

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save