move options to separate modules, set up mkDocs generation
Build docs with nix and Material for mkDocs / build-docs (push) Successful in 1m33s

This commit is contained in:
greyweather committed 2026-09-01 03:08:10 +01:00
1 parent 9f2487e3e1
commit 81e85743de
33 files changed
+385 -276

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
{ inputs, self, ... }: {
flake.homeModules.global = { lib, config, pkgs, ... }: {
imports = [ self.homeModules.globalOptions ];
nix.gc = lib.mkIf (!config.features.applications.cli.nh.enable) {
automatic = true;
persistent = true;
+2
View File
@@ -1,5 +1,7 @@
{ inputs, self, ... }: {
flake.nixosModules.global = { pkgs, config, lib, ... }: {
imports = [ self.nixosModules.globalOptions ];
system.stateVersion = config.info.stateVersion;
nix = {
-70
View File
@@ -1,70 +0,0 @@
{ inputs, self, ... }: {
flake.nixosModules.global = { pkgs, config, lib, ... }: {
options = {
info = {
rootPath = lib.mkOption {
type = lib.types.str;
default = "/home/grey/nixos";
};
hostName = lib.mkOption {
type = lib.types.str;
default = "";
};
stateVersion = lib.mkOption {
type = lib.types.str;
default = "";
};
};
components.bootLoader = lib.mkOption {
type = inputs.helpers.mkEnumFromDirContents "${self}/modules/components/boot-loaders";
default = "grub";
};
features.applications.extraPackages = lib.mkOption {
type = lib.types.listOf (lib.types.package);
default = [];
};
};
};
flake.homeModules.global = { pkgs, config, lib, ... }: {
options = {
info = {
rootPath = lib.mkOption {
type = lib.types.str;
default = "/home/grey/nixos";
};
hostName = lib.mkOption {
type = lib.types.str;
default = "";
};
stateVersion = lib.mkOption {
type = lib.types.str;
default = "";
};
isStandalone = lib.mkOption {
type = lib.types.bool;
default = true;
};
};
features.applications = {
shellScripts = lib.mkOption {
type = lib.types.attrsOf (lib.types.str);
default = {};
};
extraPackages = lib.mkOption {
type = lib.types.listOf (lib.types.package);
default = [];
};
};
};
};
}