mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
flake-parts/setups: correct module type for custom modules attr
This commit is contained in:
parent
92e409e40f
commit
32c807e064
@ -169,7 +169,7 @@ in
|
||||
{
|
||||
options.setups.home-manager = {
|
||||
sharedModules = lib.mkOption {
|
||||
type = with lib.types; listOf raw;
|
||||
type = with lib.types; listOf deferredModule;
|
||||
default = [ ];
|
||||
description = ''
|
||||
A list of modules to be shared by all of the declarative home-manager
|
||||
@ -183,7 +183,7 @@ in
|
||||
};
|
||||
|
||||
standaloneConfigModules = lib.mkOption {
|
||||
type = with lib.types; listOf raw;
|
||||
type = with lib.types; listOf deferredModule;
|
||||
default = [ ];
|
||||
internal = true;
|
||||
description = ''
|
||||
|
@ -123,7 +123,7 @@ let
|
||||
};
|
||||
|
||||
additionalModules = lib.mkOption {
|
||||
type = with lib.types; listOf raw;
|
||||
type = with lib.types; listOf deferredModule;
|
||||
description = ''
|
||||
A list of additional home-manager modules to be added with the
|
||||
user.
|
||||
@ -344,9 +344,10 @@ let
|
||||
(lib.mkIf (config.homeManagerUsers.users != { })
|
||||
(
|
||||
let
|
||||
inherit (config.homeManagerUsers) nixpkgsInstance;
|
||||
|
||||
setupConfig = config;
|
||||
hasHomeManagerUsers = config.homeManagerUsers.users != { };
|
||||
inherit (config.homeManagerUsers) nixpkgsInstance;
|
||||
isNixpkgs = state: hasHomeManagerUsers && nixpkgsInstance == state;
|
||||
in
|
||||
{ config, lib, pkgs, ... }: {
|
||||
@ -473,7 +474,7 @@ in
|
||||
{
|
||||
options.setups.nixos = {
|
||||
sharedModules = lib.mkOption {
|
||||
type = with lib.types; listOf raw;
|
||||
type = with lib.types; listOf deferredModule;
|
||||
default = [ ];
|
||||
description = ''
|
||||
A list of modules to be shared by all of the declarative NixOS setups.
|
||||
|
@ -23,7 +23,7 @@ let
|
||||
};
|
||||
|
||||
modulesOption = lib.mkOption {
|
||||
type = with lib.types; listOf raw;
|
||||
type = with lib.types; listOf deferredModule;
|
||||
default = [ ];
|
||||
};
|
||||
modulesOption' = configEnv: modulesOption // {
|
||||
|
Loading…
Reference in New Issue
Block a user