From d3c82cbba25c34be2ca5d9fe584aaa7383f031b7 Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Fri, 4 Jun 2021 15:32:29 -0400 Subject: [PATCH] cleanup --- common/flakes.nix | 5 ++++- flake.nix | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/flakes.nix b/common/flakes.nix index 388cbc6..02228e4 100644 --- a/common/flakes.nix +++ b/common/flakes.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, ... }: +{ lib, pkgs, config, inputs, ... }: with lib; let cfg = config.nix.flakes; @@ -13,6 +13,9 @@ in { extraOptions = '' experimental-features = nix-command flakes ''; + + # pin nixpkgs for system commands such as "nix shell" + registry.nixpkgs.flake = inputs.nixpkgs; }; }; } diff --git a/flake.nix b/flake.nix index 0e7f980..ab84857 100644 --- a/flake.nix +++ b/flake.nix @@ -14,11 +14,8 @@ modules = [ path simple-nixos-mailserver.nixosModule - ( { pkgs, ... }: { - # pin nixpkgs for system commands such as "nix shell" - nix.registry.nixpkgs.flake = nixpkgs; - } ) ]; + specialArgs = { inherit inputs; }; }; in {