nix:use variables

This commit is contained in:
js0ny 2025-11-02 20:24:17 +00:00
parent cf221c7c4b
commit dfcbd50294
14 changed files with 121 additions and 10 deletions

View file

@ -0,0 +1,31 @@
{
lib,
config,
...
}: {
options.currentUser = {
defaultShell = lib.mkOption {
type = lib.types.enum ["zsh" "bash" "fish"];
default = "zsh";
description = "The default shell to use.";
};
defaultTerminal = lib.mkOption {
type = lib.types.str;
default = "ghostty";
description = "The default terminal emulator.";
};
defaultTerminalRunner = lib.mkOption {
type = lib.types.str;
default = config.currentUser.defaultTerminal;
description = "The default terminal emulator to run CLI softwares directly";
};
iconTheme = lib.mkOption {
type = lib.types.str;
default = "Breeze";
description = "Default icon theme";
};
};
}