From 051e7fb3c4b21c5865f591d4c4f5a5e1f87c6b08 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 7 Nov 2023 08:21:48 +0800 Subject: [PATCH] config: remove `inputs` extraArgs It isn't exactly used much and also it is not really meant to be used in that way even though it is still Nix data. --- flake.nix | 1 - hosts/bootstrap/default.nix | 4 ++-- hosts/graphical-installer/default.nix | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index a0811711..ddfcac34 100644 --- a/flake.nix +++ b/flake.nix @@ -124,7 +124,6 @@ extraArgs = { inherit (inputs) nix-colors; - inherit inputs; # This is a variable that is used to check whether the module is # exported or not. Useful for configuring parts of the configuration diff --git a/hosts/bootstrap/default.nix b/hosts/bootstrap/default.nix index 4c05c174..c23c79c6 100644 --- a/hosts/bootstrap/default.nix +++ b/hosts/bootstrap/default.nix @@ -1,4 +1,4 @@ -{ lib, config, pkgs, inputs, modulesPath, ... }: +{ lib, config, pkgs, ... }: # Since this will be exported as an installer ISO, you'll have to keep in mind # about the added imports from nixos-generators. In this case, it simply adds @@ -11,7 +11,7 @@ # Store the source code in a easy-to-locate path. contents = [{ - source = inputs.self; + source = ../..; target = "/etc/nixos/"; }]; }; diff --git a/hosts/graphical-installer/default.nix b/hosts/graphical-installer/default.nix index 90a1a021..a173944d 100644 --- a/hosts/graphical-installer/default.nix +++ b/hosts/graphical-installer/default.nix @@ -1,4 +1,4 @@ -{ lib, config, pkgs, inputs, modulesPath, ... }: +{ lib, config, pkgs, modulesPath, ... }: # Since this will be exported as an installer ISO, you'll have to keep in mind # about the added imports from nixos-generators. In this case, it simply adds @@ -13,7 +13,7 @@ # Put the source code somewhere easy to see. contents = [{ - source = inputs.self; + source = ../..; target = "/etc/nixos"; }]; };