wip: modularize home-manager
This commit is contained in:
parent
8b735dd5da
commit
ac9918c759
14 changed files with 200 additions and 119 deletions
|
@ -34,4 +34,11 @@
|
|||
thunderbird
|
||||
remmina
|
||||
];
|
||||
|
||||
# custom-hm = {
|
||||
# fish = { enable = true; };
|
||||
# git = { enable = true; };
|
||||
# neovim = { enable = true; };
|
||||
# zellij = { enable = true; };
|
||||
# };
|
||||
}
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./fish.nix
|
||||
./git.nix
|
||||
./zellij.nix
|
||||
./vim.nix
|
||||
];
|
||||
{ inputs, pkgs, ... }: {
|
||||
imports = [ ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
dig
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
plugins = with pkgs; [
|
||||
{
|
||||
name = "pisces";
|
||||
src = fishPlugins.pisces.src;
|
||||
}
|
||||
{
|
||||
name = "done";
|
||||
src = fishPlugins.done.src;
|
||||
}
|
||||
{
|
||||
name = "hydro";
|
||||
src = fishPlugins.hydro.src;
|
||||
}
|
||||
];
|
||||
interactiveShellInit = ''
|
||||
fish_config theme choose 'ayu Dark'
|
||||
fish_config prompt choose arrow
|
||||
${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
|
||||
function fish_right_prompt
|
||||
if test -n "$IN_NIX_SHELL"
|
||||
echo -n "<nix-shell>"
|
||||
else if test $SHLVL -ge 3
|
||||
echo -n "<🚀lv$SHLVL>"
|
||||
end
|
||||
end
|
||||
function fish_command_not_found
|
||||
${pkgs.comma}/bin/comma $argv
|
||||
end
|
||||
'';
|
||||
functions = {
|
||||
gitignore = "curl -sL https://www.gitignore.io/api/$argv";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
delta.enable = true;
|
||||
userName = "Xinyang Li";
|
||||
userEmail = "lixinyang411@gmail.com";
|
||||
aliases = {
|
||||
graph = "log --all --oneline --graph --decorate";
|
||||
s = "status";
|
||||
d = "diff";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
nvim-treesitter.withAllGrammars
|
||||
dracula-nvim
|
||||
];
|
||||
extraConfig = ''
|
||||
set nocompatible
|
||||
|
||||
syntax on
|
||||
set number
|
||||
set relativenumber
|
||||
set shortmess+=I
|
||||
set laststatus=2
|
||||
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set list
|
||||
set listchars=tab:→·
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
|
||||
set mouse+=a
|
||||
|
||||
colorscheme dracula
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
{
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_shell = "fish";
|
||||
keybinds = {
|
||||
unbind = [
|
||||
"Ctrl p"
|
||||
"Ctrl n"
|
||||
];
|
||||
};
|
||||
theme = "dracula";
|
||||
themes.dracula = {
|
||||
fg = [ 248 248 242 ];
|
||||
bg = [ 40 42 54 ];
|
||||
black = [ 0 0 0 ];
|
||||
red = [ 255 85 85 ];
|
||||
green = [ 80 250 123 ];
|
||||
yellow = [ 241 250 140 ];
|
||||
blue = [ 98 114 164 ];
|
||||
magenta = [ 255 121 198 ];
|
||||
cyan = [ 139 233 253 ];
|
||||
white = [ 255 255 255 ];
|
||||
orange = [ 255 184 108 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue