feat: add kekleo.publicKeys option and share config in system and home-manager
This commit is contained in:
+17
-3
@@ -1,18 +1,32 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.kekleo = {
|
||||
options.kekleo = with lib.types; {
|
||||
publicKeys = lib.mkOption {
|
||||
type = listOf string;
|
||||
default = [ ];
|
||||
description = "List of public keys to use for ssh login, secret encryption, etc.";
|
||||
};
|
||||
graphical = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Enable GUI features and programs";
|
||||
};
|
||||
neovim = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Enable neovim";
|
||||
};
|
||||
};
|
||||
|
||||
config.home-manager.sharedModules = [
|
||||
{
|
||||
kekleo.publicKeys = lib.mkDefault config.kekleo.publicKeys;
|
||||
kekleo.graphical = lib.mkDefault config.kekleo.graphical;
|
||||
kekleo.neovim = lib.mkDefault config.kekleo.neovim;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user