mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix:use variables
This commit is contained in:
parent
cf221c7c4b
commit
dfcbd50294
14 changed files with 121 additions and 10 deletions
31
nixcfgs/modules/home/options.nix
Normal file
31
nixcfgs/modules/home/options.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue