mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake-parts/setups: refactor systems into shared config options
This commit is contained in:
parent
64750a7438
commit
25fbee9f2f
@ -158,15 +158,12 @@ in
|
||||
};
|
||||
|
||||
configs = lib.mkOption {
|
||||
type = with lib.types; attrsOf (submoduleWith {
|
||||
specialArgs = { inherit (config) systems; };
|
||||
modules = [
|
||||
(import ./shared/nix-conf.nix { inherit inputs; })
|
||||
./shared/nixpkgs-options.nix
|
||||
./shared/config-options.nix
|
||||
configType
|
||||
];
|
||||
});
|
||||
type = with lib.types; attrsOf (submodule [
|
||||
(import ./shared/nix-conf.nix { inherit inputs; })
|
||||
(import ./shared/config-options.nix { inherit (config) systems; })
|
||||
./shared/nixpkgs-options.nix
|
||||
configType
|
||||
]);
|
||||
default = { };
|
||||
description = ''
|
||||
An attribute set of metadata for the declarative home-manager setups.
|
||||
|
@ -391,17 +391,13 @@ in
|
||||
};
|
||||
|
||||
configs = lib.mkOption {
|
||||
type = with lib.types; attrsOf (submoduleWith {
|
||||
specialArgs = { inherit (config) systems; };
|
||||
shorthandOnlyDefinesConfig = true;
|
||||
modules = [
|
||||
(import ./shared/nix-conf.nix { inherit inputs; })
|
||||
./shared/config-options.nix
|
||||
./shared/home-manager-users.nix
|
||||
./shared/nixpkgs-options.nix
|
||||
configType
|
||||
];
|
||||
});
|
||||
type = with lib.types; attrsOf (submodule [
|
||||
(import ./shared/nix-conf.nix { inherit inputs; })
|
||||
(import ./shared/config-options.nix { inherit (config) systems; })
|
||||
./shared/home-manager-users.nix
|
||||
./shared/nixpkgs-options.nix
|
||||
configType
|
||||
]);
|
||||
default = { };
|
||||
description = ''
|
||||
An attribute set of metadata for the declarative NixOS setups. This
|
||||
|
@ -164,13 +164,10 @@ in
|
||||
{
|
||||
options.setups.nixvim = {
|
||||
configs = lib.mkOption {
|
||||
type = with lib.types; attrsOf (submoduleWith {
|
||||
specialArgs = { inherit (config) systems; };
|
||||
modules = [
|
||||
./shared/config-options.nix
|
||||
configType
|
||||
];
|
||||
});
|
||||
type = with lib.types; attrsOf (submodule [
|
||||
(import ./shared/config-options.nix { inherit (config) systems; })
|
||||
configType
|
||||
]);
|
||||
default = { };
|
||||
description = ''
|
||||
A set of NixVim configurations to be integrated into the declarative
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ lib, name, systems, ... }: {
|
||||
{ systems }:
|
||||
|
||||
{ lib, name, ... }: {
|
||||
options = {
|
||||
systems = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
|
@ -102,7 +102,7 @@ in
|
||||
|
||||
configs = lib.mkOption {
|
||||
type = with lib.types; attrsOf (submodule [
|
||||
./shared/config-options.nix
|
||||
(import ./shared/config-options.nix { inherit (config) systems; })
|
||||
./shared/nixpkgs-options.nix
|
||||
wrapperManagerConfigModule
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user