70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{ 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 = [];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |