From 2a2b192255491fef90134853ae897867de05bbc3 Mon Sep 17 00:00:00 2001 From: Jelle Spreeuwenberg Date: Sun, 26 Apr 2026 18:20:15 +0200 Subject: [PATCH] feat: remove module attribute and fix duplicate import --- modules/lib/helpers.nix | 3 +-- modules/lib/schema.nix | 9 +-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/modules/lib/helpers.nix b/modules/lib/helpers.nix index 5ea09c8..bc658b6 100644 --- a/modules/lib/helpers.nix +++ b/modules/lib/helpers.nix @@ -44,8 +44,7 @@ let in { imports = [ - nixosModules.host-base - machine.module + nixosModules.${machine.name} ]; meta.machine = machine; diff --git a/modules/lib/schema.nix b/modules/lib/schema.nix index d0e1f43..82c6d0e 100644 --- a/modules/lib/schema.nix +++ b/modules/lib/schema.nix @@ -1,7 +1,5 @@ -{ lib, config, ... }: +{ lib, ... }: let - nixosModules = config.flake.modules.nixos; - sourceControlScopeType = lib.types.enum [ "personal" "work" @@ -177,11 +175,6 @@ let default = name; }; - module = lib.mkOption { - type = lib.types.deferredModule; - default = nixosModules.${name}; - }; - stateVersion = lib.mkOption { type = lib.types.str; };