feat: remove module attribute and fix duplicate import
This commit is contained in:
@@ -44,8 +44,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixosModules.host-base
|
nixosModules.${machine.name}
|
||||||
machine.module
|
|
||||||
];
|
];
|
||||||
|
|
||||||
meta.machine = machine;
|
meta.machine = machine;
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{ lib, config, ... }:
|
{ lib, ... }:
|
||||||
let
|
let
|
||||||
nixosModules = config.flake.modules.nixos;
|
|
||||||
|
|
||||||
sourceControlScopeType = lib.types.enum [
|
sourceControlScopeType = lib.types.enum [
|
||||||
"personal"
|
"personal"
|
||||||
"work"
|
"work"
|
||||||
@@ -177,11 +175,6 @@ let
|
|||||||
default = name;
|
default = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
module = lib.mkOption {
|
|
||||||
type = lib.types.deferredModule;
|
|
||||||
default = nixosModules.${name};
|
|
||||||
};
|
|
||||||
|
|
||||||
stateVersion = lib.mkOption {
|
stateVersion = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user