From ca6c2c211148bf090ad954f361cac97fa453c901 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 30 Nov 2022 17:24:39 -0500 Subject: [PATCH] nixos/docker-image: clean up let-in binding --- nixos/modules/profiles/docker-container.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nixos/modules/profiles/docker-container.nix b/nixos/modules/profiles/docker-container.nix index 183645de36fb..5365e49711dc 100644 --- a/nixos/modules/profiles/docker-container.nix +++ b/nixos/modules/profiles/docker-container.nix @@ -1,13 +1,12 @@ { config, lib, pkgs, ... }: -with lib; - -let inherit (pkgs) writeScript; in - let - pkgs2storeContents = l : map (x: { object = x; symlink = "none"; }) l; + inherit (pkgs) writeScript; -in { + pkgs2storeContents = map (x: { object = x; symlink = "none"; }); +in + +{ # Docker image config. imports = [ ../installer/cd-dvd/channel.nix