Skip to content

Commit

Permalink
pkgs.lib -> lib
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 28, 2015
1 parent 8cfe912 commit 871634a
Show file tree
Hide file tree
Showing 31 changed files with 78 additions and 68 deletions.
4 changes: 2 additions & 2 deletions nix/adhoc-cloud-vm.nix
@@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, ... }:

with pkgs.lib;
with lib;

{
boot.loader.grub.version = 2;
Expand Down
4 changes: 2 additions & 2 deletions nix/auto-luks.nix
@@ -1,8 +1,8 @@
# Module to automatically create LUKS-encrypted devices.

{ config, pkgs, utils, ... }:
{ config, lib, pkgs, utils, ... }:

with pkgs.lib;
with lib;
with utils;

{
Expand Down
4 changes: 2 additions & 2 deletions nix/auto-raid0.nix
@@ -1,9 +1,9 @@
# Module to automatically combine devices into a RAID-0 volume
# (actually an LVM logical volume).

{ config, pkgs, utils, ... }:
{ config, lib, pkgs, utils, ... }:

with pkgs.lib;
with lib;
with utils;

{
Expand Down
4 changes: 2 additions & 2 deletions nix/ec2-keypair.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/ec2-placement-group.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/ec2-security-group.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
2 changes: 1 addition & 1 deletion nix/ec2.nix
Expand Up @@ -4,7 +4,7 @@

with lib;
with utils;
with (import ./lib.nix pkgs);
with import ./lib.nix lib;

let

Expand Down
4 changes: 2 additions & 2 deletions nix/elastic-ip.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/gce-disk.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, pkgs, lib, uuid, name, ... }:

with pkgs.lib;
with lib;
with (import ./lib.nix pkgs);
{

Expand Down
7 changes: 4 additions & 3 deletions nix/gce-forwarding-rule.nix
@@ -1,7 +1,8 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, pkgs, uuid, name, ... }:

with lib;
with import ./lib.nix lib;

with pkgs.lib;
with (import ./lib.nix pkgs);
{

options = (import ./gce-credentials.nix pkgs "forwarding rule") // {
Expand Down
6 changes: 3 additions & 3 deletions nix/gce-http-health-check.nix
@@ -1,7 +1,7 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, pkgs, uuid, name, ... }:

with pkgs.lib;
with (import ./lib.nix pkgs);
with lib;
with import ./lib.nix lib;
{

options = (import ./gce-credentials.nix pkgs "HTTP health check") // {
Expand Down
8 changes: 5 additions & 3 deletions nix/gce-image.nix
@@ -1,6 +1,8 @@
{ config, pkgs, uuid, name, ... }:
with pkgs.lib;
with (import ./lib.nix pkgs);
{ config, lib, pkgs, uuid, name, ... }:

with lib;
with import ./lib.nix lib;

{

options = (import ./gce-credentials.nix pkgs "image") // {
Expand Down
6 changes: 3 additions & 3 deletions nix/gce-network.nix
@@ -1,7 +1,7 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, pkgs, uuid, name, ... }:

with pkgs.lib;
with (import ./lib.nix pkgs);
with lib;
with import ./lib.nix lib;

let

Expand Down
7 changes: 4 additions & 3 deletions nix/gce-static-ip.nix
@@ -1,7 +1,8 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, pkgs, uuid, name, ... }:

with lib;
with import ./lib.nix lib;

with pkgs.lib;
with (import ./lib.nix pkgs);
{

options = (import ./gce-credentials.nix pkgs "IP address") // {
Expand Down
7 changes: 4 additions & 3 deletions nix/gce-target-pool.nix
@@ -1,7 +1,8 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, pkgs, uuid, name, ... }:

with lib;
with import ./lib.nix lib;

with pkgs.lib;
with (import ./lib.nix pkgs);
let

machine = mkOptionType {
Expand Down
7 changes: 4 additions & 3 deletions nix/gce.nix
@@ -1,9 +1,10 @@
# Configuration specific to the Google Compute Engine backend.

{ config, pkgs, name, uuid, resources, ... }:
{ config, lib, pkgs, name, uuid, resources, ... }:

with lib;
with import ./lib.nix lib;

with pkgs.lib;
with (import ./lib.nix pkgs);
let

gce_dev_prefix = "/dev/disk/by-id/scsi-0Google_PersistentDisk_";
Expand Down
6 changes: 3 additions & 3 deletions nix/gse-bucket.nix
@@ -1,7 +1,7 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, pkgs, uuid, name, ... }:

with pkgs.lib;
with (import ./lib.nix pkgs);
with lib;
with import ./lib.nix lib;

let

Expand Down
4 changes: 2 additions & 2 deletions nix/hetzner.nix
@@ -1,8 +1,8 @@
# Configuration specific to the Hetzner backend.

{ config, pkgs, ... }:
{ config, lib, ... }:

with pkgs.lib;
with lib;

{
###### interface
Expand Down
4 changes: 2 additions & 2 deletions nix/iam-role.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/keys.nix
@@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:

with pkgs.lib;
with lib;

let
keyOptionsType = types.submodule {
Expand Down
6 changes: 5 additions & 1 deletion nix/lib.nix
@@ -1,4 +1,8 @@
pkgs: with pkgs.lib; {
lib:

with lib;

{

resource = type: mkOptionType {
name = "resource of type ‘${type}’";
Expand Down
6 changes: 3 additions & 3 deletions nix/libvirtd.nix
@@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:

with pkgs.lib;
with lib;

let
sz = toString config.deployment.libvirtd.baseImageSize;
Expand Down Expand Up @@ -76,7 +76,7 @@ in
deployment.libvirtd.networks = mkOption {
default = [ "default" ];
type = types.listOf types.str;
description = "Names of libvirt networks to attach the VM to";
description = "Names of libvirt networks to attach the VM to.";
};
};

Expand Down
4 changes: 2 additions & 2 deletions nix/options.nix
@@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, ... }:

with pkgs.lib;
with lib;

let

Expand Down
4 changes: 2 additions & 2 deletions nix/resource.nix
@@ -1,6 +1,6 @@
{ config, pkgs, name, ... }:
{ config, lib, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/route53.nix
@@ -1,8 +1,8 @@
# Configuration specific to the Amazon Route 53 service.

{ config, pkgs, ... }:
{ config, lib, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/s3-bucket.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/sqs-queue.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/ssh-keypair.nix
@@ -1,6 +1,6 @@
{ config, pkgs, uuid, name, ... }:
{ config, lib, uuid, name, ... }:

with pkgs.lib;
with lib;

{

Expand Down
4 changes: 2 additions & 2 deletions nix/ssh-tunnel.nix
@@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, lib, ... }:

with pkgs.lib;
with lib;

{

Expand Down
2 changes: 1 addition & 1 deletion nix/virtualbox-image-nixops.nix
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:

let

Expand Down
4 changes: 2 additions & 2 deletions nix/virtualbox.nix
@@ -1,6 +1,6 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:

with pkgs.lib;
with lib;

let

Expand Down

0 comments on commit 871634a

Please sign in to comment.