From 0e7e1791e6b81c6ba55e6a73cdd8ae9c4bd57024 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 2 Jan 2017 14:58:50 +0100 Subject: machines/aszlig: Remove "with lib;" I now prefer to explicitly state the function along with the "lib." namespace instead of making it available over the whole scope of the module. One of the main reasons for this is that you can do early error checking with nix-instantiate --parse. Signed-off-by: aszlig --- machines/aszlig/tishtushi.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'machines/aszlig/tishtushi.nix') diff --git a/machines/aszlig/tishtushi.nix b/machines/aszlig/tishtushi.nix index 912b0057..21ba9b3a 100644 --- a/machines/aszlig/tishtushi.nix +++ b/machines/aszlig/tishtushi.nix @@ -1,7 +1,5 @@ { config, pkgs, lib, ... }: -with lib; - let rootUUID = "e33a3dda-a87d-473b-b113-37783aa35667"; swapUUID = "e9f59283-143c-4c36-978c-c730c6ca27c7"; @@ -19,7 +17,7 @@ in { }; networking.hostName = "tishtushi"; - networking.wireless.enable = mkForce true; + networking.wireless.enable = lib.mkForce true; fileSystems."/" = { device = "/dev/disk/by-uuid/${rootUUID}"; @@ -33,7 +31,7 @@ in { options = [ "ssd" "compress-force=zlib" "noatime" ]; }; - swapDevices = singleton { + swapDevices = lib.singleton { device = "/dev/disk/by-uuid/${swapUUID}"; }; -- cgit 1.4.1