Reviewed-on: https://gitea.mrdev023.fr/florian.richer/nixos/pulls/1 Co-authored-by: Florian RICHER <florian.richer@protonmail.com> Co-committed-by: Florian RICHER <florian.richer@protonmail.com>
This commit is contained in:
parent
e9329e63dc
commit
b7f82f87e8
84 changed files with 1100 additions and 1247 deletions
22
modules/home/shell/atuin/default.nix
Normal file
22
modules/home/shell/atuin/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.home.shell.atuin;
|
||||
in
|
||||
{
|
||||
options.modules.home.shell.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/home/shell/default.nix
Normal file
10
modules/home/shell/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./atuin
|
||||
./direnv
|
||||
./git
|
||||
./zsh
|
||||
];
|
||||
}
|
18
modules/home/shell/direnv/default.nix
Normal file
18
modules/home/shell/direnv/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.home.shell.direnv;
|
||||
in
|
||||
{
|
||||
options.modules.home.shell.direnv = {
|
||||
enable = mkEnableOption ''
|
||||
Enable direnv with my custom configurations
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
22
modules/home/shell/git/default.nix
Normal file
22
modules/home/shell/git/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.home.shell.git;
|
||||
in
|
||||
{
|
||||
options.modules.home.shell.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;
|
||||
};
|
||||
};
|
||||
}
|
37
modules/home/shell/zsh/default.nix
Normal file
37
modules/home/shell/zsh/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.home.shell.zsh;
|
||||
in
|
||||
{
|
||||
options.modules.home.shell.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/home/shell/zsh/p10k.zsh
Normal file
1738
modules/home/shell/zsh/p10k.zsh
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue