added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
This commit is contained in:
parent
322788aa3a
commit
6f0e167087
30 changed files with 539 additions and 525 deletions
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
home.git = {
|
||||
user.git = {
|
||||
workProfile = {
|
||||
enable = lib.mkEnableOption "git work profile";
|
||||
email = lib.mkOption {
|
||||
|
@ -45,8 +45,8 @@
|
|||
};
|
||||
# difftastic.enable=true;
|
||||
# difftastic.background="dark";
|
||||
userEmail = config.home.git.profile.email;
|
||||
userName = config.home.git.profile.name;
|
||||
userEmail = config.user.git.profile.email;
|
||||
userName = config.user.git.profile.name;
|
||||
extraConfig = {
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
|
@ -75,11 +75,11 @@
|
|||
};
|
||||
};
|
||||
includes =
|
||||
if config.home.git.workProfile.enable
|
||||
if config.user.git.workProfile.enable
|
||||
then [
|
||||
{
|
||||
condition = "gitdir:~/work/**";
|
||||
contents.user.email = config.home.git.workProfile.email;
|
||||
contents.user.email = config.user.git.workProfile.email;
|
||||
}
|
||||
]
|
||||
else [];
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
hostname = {
|
||||
ssh_only = false;
|
||||
ssh_symbol = "🌐";
|
||||
format = "[$hostname$ssh_symbol]($style)";
|
||||
format = "[$hostname $ssh_symbol]($style)";
|
||||
style = "bg:color_orange";
|
||||
};
|
||||
shell = {
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
...
|
||||
}: {
|
||||
options = {
|
||||
home.enable-speech = lib.mkEnableOption "espeak";
|
||||
user.enable-speech = lib.mkEnableOption "espeak";
|
||||
};
|
||||
|
||||
config =
|
||||
lib.mkIf config.home.enable-speech
|
||||
lib.mkIf config.user.enable-speech
|
||||
{
|
||||
home.shellAliases = {
|
||||
say = "espeak -p 10 -s 150 -a 200";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue