2024-05-26 08:38:22 +00:00
|
|
|
# The declarative environment management modules. Basically the backbone of my
|
|
|
|
# flake. Most of the modules here should have some things integrated within
|
|
|
|
# each other such as the ability to easily declare home-manager users (or a
|
|
|
|
# NixVim instance) into a NixOS system from already existing declared
|
|
|
|
# home-manager users (or NixVim instances) in the flake config.
|
2024-07-16 05:47:41 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
2024-01-16 06:54:50 +00:00
|
|
|
{
|
|
|
|
imports = [
|
2024-02-27 12:58:22 +00:00
|
|
|
./disko.nix
|
2024-01-16 06:54:50 +00:00
|
|
|
./nixos.nix
|
2024-01-25 14:49:57 +00:00
|
|
|
./nixvim.nix
|
2024-01-16 06:54:50 +00:00
|
|
|
./home-manager.nix
|
2024-07-22 11:45:56 +00:00
|
|
|
./wrapper-manager.nix
|
2024-01-16 06:54:50 +00:00
|
|
|
];
|
2024-07-16 05:47:41 +00:00
|
|
|
|
2024-07-23 10:27:15 +00:00
|
|
|
options.setups = {
|
|
|
|
configDir = lib.mkOption {
|
|
|
|
type = lib.types.path;
|
|
|
|
default = ../../../configs;
|
|
|
|
description = ''
|
|
|
|
The directory containing configurations of various environments. The
|
|
|
|
top-level directories are expected to be the name of the environment
|
|
|
|
with their configurations inside.
|
|
|
|
'';
|
|
|
|
example = lib.literalExpression ''
|
|
|
|
''${inputs.my-flake}/configs
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
sharedNixpkgsConfig = lib.mkOption {
|
|
|
|
type = with lib.types; attrsOf anything;
|
|
|
|
description = ''
|
|
|
|
Shared configuration of the nixpkgs instance to be passed to all of the
|
|
|
|
module environments based from the nixpkgs module system.
|
|
|
|
'';
|
|
|
|
default = { };
|
|
|
|
example = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2024-07-16 05:47:41 +00:00
|
|
|
};
|
|
|
|
};
|
2024-01-16 06:54:50 +00:00
|
|
|
}
|