From 22a80c873ba5ebd355d48a841d3a4c078a6a7106 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 3 Apr 2022 18:20:50 +0200 Subject: [PATCH] Fix secrets module --- flake.nix | 1 - home.nix | 3 ++- hosts/common.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a143319..5958152 100644 --- a/flake.nix +++ b/flake.nix @@ -100,7 +100,6 @@ imports = [ ./home.nix - secrets.outputs.nixosModule ]; }; }; diff --git a/home.nix b/home.nix index 24c171d..f353f42 100644 --- a/home.nix +++ b/home.nix @@ -1,4 +1,4 @@ -{ pkgs, machineVars, ... } @ args: let +{ pkgs, machineVars, inputs, ... } @ args: let inherit (pkgs) lib; inherit (pkgs.lib) mkForce mkIf optionals; graphics = !machineVars.headless; @@ -17,6 +17,7 @@ in { ./programs/tmux.nix ./programs/zsh + inputs.secrets.outputs.nixosModule ] ++ optionals graphics [ ./misc/mimetypes.nix diff --git a/hosts/common.nix b/hosts/common.nix index cedf5dc..f9f7c31 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -113,7 +113,7 @@ in { # TODO: figure out why specialArgs isn't accessible from the root home file. users.h7x4 = import ../home.nix { inherit pkgs; - inherit (specialArgs) machineVars; + inherit (specialArgs) machineVars inputs; }; };