Begin migrate all cli conf

This commit is contained in:
Florian RICHER 2024-05-25 00:37:37 +02:00
parent e9329e63dc
commit 0aa0f2eb80
9 changed files with 2125 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.cli.atuin;
in
{
options.modules.cli.atuin = {
enable = mkEnableOption ''
Enable atuin with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.atuin = {
enable = true;
settings = {
# Uncomment this to use your instance
# sync_address = "https://majiy00-shell.fly.dev";
};
};
};
}

10
modules/cli/default.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
imports = [
./atuin
./direnv
./git
./zsh
];
}

View file

@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.cli.direnv;
in
{
options.modules.cli.direnv = {
enable = mkEnableOption ''
Enable direnv with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
};
};
}

View file

@ -0,0 +1,22 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.cli.git;
in
{
options.modules.cli.git = {
enable = mkEnableOption ''
Enable git with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
userName = "Florian RICHER";
userEmail = "florian.richer@protonmail.com";
# signing.signByDefault = true;
};
};
}

View file

@ -0,0 +1,37 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.cli.zsh;
in
{
options.modules.cli.zsh = {
enable = mkEnableOption ''
Enable zsh with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.zsh = {
enable = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initExtra = ''
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
'';
plugins = with pkgs; [
{
file = "powerlevel10k.zsh-theme";
name = "powerlevel10k";
src = "${zsh-powerlevel10k}/share/zsh-powerlevel10k";
}
{
file = "p10k.zsh";
name = "powerlevel10k-config";
src = zsh-powerlevel10k;
}
];
};
};
}

1738
modules/cli/zsh/p10k.zsh Normal file

File diff suppressed because it is too large Load diff