Improve repo structure

This commit is contained in:
Paul-Henri Froidmont 2021-07-16 21:09:58 +02:00
parent fdc4148540
commit 62f200ba03
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
294 changed files with 499 additions and 516 deletions

44
users/froidmpa/dunst.nix Normal file
View file

@ -0,0 +1,44 @@
{}:
{
enable = true;
settings = {
global = {
monitor = 0;
geometry = "350x5-30+50";
transparency = 10;
font = "monospace 14";
idle_threshold = 120;
allow_markup = "yes";
format = "<b>%s</b>\n%b";
show_age_threshold = 300;
word_wrap = "yes";
sticky_history = "yes";
sort = "yes";
};
frame = {
width = 3;
color = "#ebdbb2";
};
shortcuts = {
close = "ctrl+space";
close_all = "ctrl+shift+space";
history = "ctrl+grave";
context = "ctrl+shift+period";
};
urgency_low = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 10;
};
urgency_normal = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 10;
};
urgency_critical = {
foreground = "#ebdbb2";
background = "#32302f";
timeout = 10;
};
};
}

23
users/froidmpa/mpd.nix Normal file
View file

@ -0,0 +1,23 @@
{ config, ... }:
{
enable = true;
network.listenAddress = "any";
musicDirectory = "${config.home.homeDirectory}/Nextcloud/Media/Music";
playlistDirectory = "${config.home.homeDirectory}/Nextcloud/Playlists";
extraConfig = ''
max_output_buffer_size "16384"
auto_update "yes"
audio_output {
type "pulse"
name "pulse audio"
device "pulse"
mixer_type "hardware"
}
audio_output {
type "fifo"
name "toggle_visualizer"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
'';
}

33
users/froidmpa/neovim.nix Normal file
View file

@ -0,0 +1,33 @@
{ pkgs, ... }:
{
enable = true;
vimAlias = true;
plugins = with pkgs; [
vimPlugins.gruvbox-community
vimPlugins.vim-airline
vimPlugins.vim-airline-themes
vimPlugins.vim-gitgutter
vimPlugins.nerdtree
vimPlugins.nerdtree-git-plugin
vimPlugins.ctrlp-vim
vimPlugins.tabular
];
extraConfig = ''
let g:gruvbox_italic=1
colorscheme gruvbox
set background=dark
let g:airline_powerline_fonts = 1
autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE
"Toggle NERDTree with Ctrl-N
map <C-n> :NERDTreeToggle<CR>
"Show hidden files in NERDTree
let NERDTreeShowHidden=1
set number relativenumber
" Run xrdb whenever Xdefaults or Xresources are updated.
autocmd BufWritePost ~/.Xresources,~/.Xdefaults !xrdb %
'';
}

41
users/froidmpa/urxvt.nix Normal file
View file

@ -0,0 +1,41 @@
{ pkgs, ... }:
{
enable = true;
package = pkgs.rxvt_unicode-with-plugins;
fonts = [ "xft:monospace:size=12:antialias=true" ];
scroll = {
bar.enable = false;
lines = 65535;
};
keybindings = {
"Shift-Control-C" = "eval:selection_to_clipboard";
"Shift-Control-V" = "eval:paste_clipboard";
};
extraConfig = {
"perl-ext-common" = "default,clipboard,matcher,resize-font";
"background" = "rgba:28ff/28ff/28ff/cf00";
"foreground" = "#ebdbb2";
"color0" = "#282828";
"color8" = "#928374";
"color1" = "#cc241d";
"color9" = "#fb4934";
"color2" = "#98971a";
"color10" = "#b8bb26";
"color3" = "#d79921";
"color11" = "#fabd2f";
"color4" = "#458588";
"color12" = "#83a598";
"color5" = "#b16286";
"color13" = "#d3869b";
"color6" = "#689d6a";
"color14" = "#8ec07c";
"color7" = "#a89984";
"color15" = "#ebdbb2";
"termName" = "rxvt-256color";
"letterSpace" = "-1";
"internalBorder" = "10";
"depth" = "32";
"resize-font.smaller" = "C-Down";
"resize-font.bigger" = "C-Up";
};
}

33
users/froidmpa/zsh.nix Normal file
View file

@ -0,0 +1,33 @@
{ pkgs, ... }:
{
enable = true;
history = {
save = 50000;
size = 50000;
};
enableAutosuggestions = true;
initExtra = ''
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
eval $(thefuck --alias)
'';
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "robbyrussell";
};
plugins = [
{
name = "zsh-syntax-highlighting";
file = "share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh";
src = "${pkgs.zsh-syntax-highlighting}";
}
];
}