about summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-11-30 17:26:31 -0500
committerfigsoda <figsoda@pm.me>2022-11-30 17:27:31 -0500
commitfd4f865645cfba121f2ac6d052786cdf9638b318 (patch)
tree902aedc76509176483f4ab61756e99884f98e131 /nixos/modules/misc
parentca6c2c211148bf090ad954f361cac97fa453c901 (diff)
downloadnixlib-fd4f865645cfba121f2ac6d052786cdf9638b318.tar
nixlib-fd4f865645cfba121f2ac6d052786cdf9638b318.tar.gz
nixlib-fd4f865645cfba121f2ac6d052786cdf9638b318.tar.bz2
nixlib-fd4f865645cfba121f2ac6d052786cdf9638b318.tar.lz
nixlib-fd4f865645cfba121f2ac6d052786cdf9638b318.tar.xz
nixlib-fd4f865645cfba121f2ac6d052786cdf9638b318.tar.zst
nixlib-fd4f865645cfba121f2ac6d052786cdf9638b318.zip
nixos/nixpkgs: remove unused binding
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/nixpkgs.nix9
1 files changed, 2 insertions, 7 deletions
diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix
index 7f7417226d17..7f44c3f6f3f0 100644
--- a/nixos/modules/misc/nixpkgs.nix
+++ b/nixos/modules/misc/nixpkgs.nix
@@ -23,12 +23,12 @@ let
     optionalAttrs (lhs ? packageOverrides) {
       packageOverrides = pkgs:
         optCall lhs.packageOverrides pkgs //
-        optCall (attrByPath ["packageOverrides"] ({}) rhs) pkgs;
+        optCall (attrByPath [ "packageOverrides" ] { } rhs) pkgs;
     } //
     optionalAttrs (lhs ? perlPackageOverrides) {
       perlPackageOverrides = pkgs:
         optCall lhs.perlPackageOverrides pkgs //
-        optCall (attrByPath ["perlPackageOverrides"] ({}) rhs) pkgs;
+        optCall (attrByPath [ "perlPackageOverrides" ] { } rhs) pkgs;
     };
 
   configType = mkOptionType {
@@ -67,11 +67,6 @@ let
   # Context for messages
   hostPlatformLine = optionalString hasHostPlatform "${showOptionWithDefLocs opt.hostPlatform}";
   buildPlatformLine = optionalString hasBuildPlatform "${showOptionWithDefLocs opt.buildPlatform}";
-  platformLines = optionalString hasPlatform ''
-    Your system configuration configures nixpkgs with platform parameters:
-    ${hostPlatformLine
-    }${buildPlatformLine
-    }'';
 
   legacyOptionsDefined =
     optional (opt.localSystem.highestPrio < (mkDefault {}).priority) opt.system