65 lines
1.5 KiB
Nix
65 lines
1.5 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 = lib.types.enum (map (name: lib.removeSuffix ".nix" name) (
|
|
builtins.attrNames (builtins.readDir "${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 = false;
|
|
};
|
|
};
|
|
|
|
features.applications.extraPackages = lib.mkOption {
|
|
type = lib.types.listOf (lib.types.package);
|
|
default = [];
|
|
};
|
|
};
|
|
};
|
|
} |