diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-01-02 14:58:50 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-01-02 15:26:03 +0100 |
commit | 0e7e1791e6b81c6ba55e6a73cdd8ae9c4bd57024 (patch) | |
tree | 537863d924283e4e052fa6035f39a5cf03cf9faa /machines/aszlig/tishtushi.nix | |
parent | 57ae89a63d1d21884861df02b5b552696353eb7a (diff) |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines/aszlig/tishtushi.nix')
-rw-r--r-- | machines/aszlig/tishtushi.nix | 6 |
1 files changed, 2 insertions, 4 deletions
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}"; }; |