home-manager: fix injection of machineVars

This commit is contained in:
2024-06-08 12:22:23 +02:00
parent 9caab9f6a7
commit ee44e4f952
6 changed files with 12 additions and 20 deletions

View File

@@ -1,9 +1,7 @@
{ pkgs, lib, extendedLib, inputs, machineVars, ... } @ args: let
{ config, pkgs, lib, extendedLib, inputs, machineVars, ... } @ args: let
inherit (lib) mkForce mkIf optionals;
graphics = !machineVars.headless;
in {
inherit machineVars;
imports = [
./shell.nix
./packages.nix
@@ -26,7 +24,6 @@ in {
./programs/tmux.nix
./programs/zsh
../modules/machineVars.nix
./modules/colors.nix
./modules/shellAliases.nix
] ++ optionals graphics [