Compare commits
2 commits
b9974a790a
...
0316638e21
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 0316638e21 | ||
Geoffrey Frogeye | 3995e664d0 |
|
@ -1 +0,0 @@
|
|||
ccache_dir = $HOME/.cache/ccache
|
|
@ -1,3 +0,0 @@
|
|||
[flake8]
|
||||
# Compatibility with Black
|
||||
max-line-length = 88
|
|
@ -1,3 +0,0 @@
|
|||
define hook-quit
|
||||
set confirm off
|
||||
end
|
1
config/git/.gitignore
vendored
1
config/git/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
gitk
|
|
@ -1,19 +0,0 @@
|
|||
[user]
|
||||
name = Geoffrey “Frogeye” Preud'homme
|
||||
email = geoffrey@frogeye.fr
|
||||
signingkey = 0x8312C8CAC1BAC289
|
||||
[core]
|
||||
editor = nvim
|
||||
excludesfile = ~/.config/git/gitignore
|
||||
[push]
|
||||
default = matching
|
||||
[alias]
|
||||
git = !exec git
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[pull]
|
||||
ff = only
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
*.swp
|
||||
*.swo
|
||||
*.ycm_extra_conf.py
|
||||
tags
|
||||
.mypy_cache
|
1
config/gtk-3.0/.gitignore
vendored
1
config/gtk-3.0/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
bookmarks
|
|
@ -1,16 +0,0 @@
|
|||
[Settings]
|
||||
gtk-theme-name=Greenbird
|
||||
gtk-icon-theme-name=Faenza-Green
|
||||
gtk-font-name=Sans 10
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=1
|
||||
gtk-menu-images=1
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-cursor-theme-name=Menda-Cursor
|
|
@ -1,61 +0,0 @@
|
|||
# interface: if
|
||||
# Sets the network interface to if.
|
||||
|
||||
dns-resolution: yes
|
||||
# Controls reverse lookup of IP addresses.
|
||||
|
||||
port-resolution: no
|
||||
# Controls conversion of port numbers to service names.
|
||||
|
||||
# filter-code: bpf
|
||||
# Sets the filter code to bpf.
|
||||
|
||||
show-bars: yes
|
||||
# Controls display of bar graphs.
|
||||
|
||||
promiscuous: no
|
||||
# Puts the interface into promiscuous mode.
|
||||
|
||||
port-display: on
|
||||
# Controls display of port numbers.
|
||||
|
||||
link-local: yes
|
||||
# Determines displaying of link-local IPv6 addresses.
|
||||
|
||||
hide-source: no
|
||||
# Hides source host names.
|
||||
|
||||
hide-destination: no
|
||||
# Hides destination host names.
|
||||
|
||||
use-bytes: yes
|
||||
# Use bytes for bandwidth display, rather than bits.
|
||||
|
||||
sort: 10s
|
||||
# Sets which column is used to sort the display.
|
||||
|
||||
line-display: two-line
|
||||
# Controls the appearance of each item in the display.
|
||||
|
||||
show-totals: yes
|
||||
# Shows cumulative total for each item.
|
||||
|
||||
log-scale: yes
|
||||
# Use a logarithmic scale for bar graphs.
|
||||
|
||||
# max-bandwidth: bw
|
||||
# Fixes the maximum for the bar graph scale to bw, e.g. "10M".
|
||||
# Note that the value has to always be in bits, regardless if the
|
||||
# option to display in bytes has been chosen.
|
||||
|
||||
# net-filter: net/mask
|
||||
# Defines an IP network boundary for determining packet direc‐
|
||||
# tion.
|
||||
|
||||
# net-filter6: net6/mask6
|
||||
# Defines an IPv6 network boundary for determining packet direc‐
|
||||
# tion.
|
||||
|
||||
# screen-filter: regexp
|
||||
# Sets a regular expression to filter screen output.
|
||||
|
|
@ -134,7 +134,7 @@ in
|
|||
diff = "diff --color=auto";
|
||||
dmesg = "dmesg --ctime";
|
||||
wget = "wget --hsts-file ${config.xdg.cacheHome}/wget-hsts";
|
||||
} // lib.attrsets.mergeAttrsList (map (p: {"${p}" = "HOME=${config.xdg.cacheHome}/junkhome ${p}";}) treatsHomeAsJunk);
|
||||
} // lib.attrsets.mergeAttrsList (map (p: { "${p}" = "HOME=${config.xdg.cacheHome}/junkhome ${p}"; }) treatsHomeAsJunk);
|
||||
# TODO Maybe make nixpkg wrapper instead? So it also works from dmenu
|
||||
# Could also accept my fate... Home-manager doesn't necessarily make it easy to put things out of the home directory
|
||||
historySize = 100000;
|
||||
|
@ -241,7 +241,8 @@ in
|
|||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
defaultOptions = [ "--height 40%" "--layout=default" ];
|
||||
fileWidgetOptions = [ "--preview '[[ -d {} ]] && ls -l --color=always {} || [[ \$(file --mime {}) =~ binary ]] && file --brief {} || (highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null | head -500'" ];
|
||||
fileWidgetOptions = [ "--preview '[[ -d {} ]] && ${pkgs.coreutils}/bin/ls -l --color=always {} || [[ \$(${pkgs.file}/bin/file --mime {}) =~ binary ]] && ${pkgs.file}/bin/file --brief {} || (${pkgs.highlight}/bin/highlight -O ansi -l {} || coderay {} || rougify {} || ${pkgs.coreutils}/bin/cat {}) 2> /dev/null | head -500'" ];
|
||||
# file and friends are not in PATH by default... so here we want aboslute paths, which means those won't get reloaded. Meh.
|
||||
};
|
||||
# TODO highlight or bat
|
||||
nix-index = {
|
||||
|
@ -249,6 +250,66 @@ in
|
|||
enableZshIntegration = true;
|
||||
};
|
||||
less.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
aliases = {
|
||||
"git" = "!exec git"; # In case I write one too many git
|
||||
};
|
||||
ignores = [
|
||||
"*.swp"
|
||||
"*.swo"
|
||||
"*.ycm_extra_conf.py"
|
||||
"tags"
|
||||
".mypy_cache"
|
||||
];
|
||||
lfs.enable = true;
|
||||
signing = {
|
||||
key = "0x8312C8CAC1BAC289"; # FIXME Only in extension
|
||||
# TODO signByDefault?
|
||||
};
|
||||
userEmail = "geoffrey@frogeye.fr";
|
||||
userName = "Geoffrey “Frogeye” Preud'homme";
|
||||
extraConfig = {
|
||||
core = {
|
||||
editor = "nvim";
|
||||
};
|
||||
push = {
|
||||
default = "matching";
|
||||
};
|
||||
pull = {
|
||||
ff = "only";
|
||||
};
|
||||
};
|
||||
# TODO Delta syntax highlighter... and other cool-looking options?
|
||||
};
|
||||
readline = {
|
||||
enable = true;
|
||||
variables = {
|
||||
"bell-style" = "none";
|
||||
"colored-completion-prefix" = true;
|
||||
"colored-stats" = true;
|
||||
"completion-ignore-case" = true;
|
||||
"completion-query-items" = 200;
|
||||
"editing-mode" = "vi";
|
||||
"history-preserve-point" = true;
|
||||
"history-size" = 10000;
|
||||
"horizontal-scroll-mode" = false;
|
||||
"mark-directories" = true;
|
||||
"mark-modified-lines" = false;
|
||||
"mark-symlinked-directories" = true;
|
||||
"match-hidden-files" = true;
|
||||
"menu-complete-display-prefix" = true;
|
||||
"page-completions" = true;
|
||||
"print-completions-horizontally" = false;
|
||||
"revert-all-at-newline" = false;
|
||||
"show-all-if-ambiguous" = true;
|
||||
"show-all-if-unmodified" = true;
|
||||
"show-mode-in-prompt" = true;
|
||||
"skip-completed-text" = true;
|
||||
"visible-stats" = false;
|
||||
};
|
||||
extraConfig = builtins.readFile ./inputrc;
|
||||
};
|
||||
};
|
||||
services = {
|
||||
gpg-agent = {
|
||||
|
@ -261,6 +322,32 @@ in
|
|||
# FIXME For g extension, as base is not supposed to have private keys
|
||||
};
|
||||
};
|
||||
xdg = {
|
||||
configFile = {
|
||||
# TODO Should be xdg.configFile
|
||||
"ccache.conf" = {
|
||||
text = "ccache_dir = ${config.xdg.cacheHome}/ccache";
|
||||
};
|
||||
"gdbinit" = {
|
||||
text = ''
|
||||
define hook-quit
|
||||
set confirm off
|
||||
end
|
||||
'';
|
||||
};
|
||||
"iftoprc" = {
|
||||
text = ''
|
||||
port-resolution: no
|
||||
promiscuous: no
|
||||
port-display: on
|
||||
link-local: yes
|
||||
use-bytes: yes
|
||||
show-totals: yes
|
||||
log-scale: yes
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
home = {
|
||||
stateVersion = "23.05";
|
||||
language = {
|
||||
|
@ -275,7 +362,6 @@ in
|
|||
gnused
|
||||
gnutar
|
||||
openssl
|
||||
git
|
||||
wget
|
||||
curl
|
||||
python3Packages.pip
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
# TODO Is a shell script even required?
|
||||
}";
|
||||
"${mod}+Shift+Return" = "exec ${config.programs.urxvt.package}/bin/urxvt";
|
||||
"${mod}+p" = "exec ${pkgs.xfce.thunar}/bin/tunar";
|
||||
"${mod}+p" = "exec ${pkgs.xfce.thunar}/bin/thunar";
|
||||
"${mod}+m" = "exec ${config.programs.qutebrowser.package}/bin/qutebrowser --override-restore --backend=webengine";
|
||||
# TODO --backend not useful anymore
|
||||
# Volume control
|
||||
|
|
|
@ -1,27 +1,3 @@
|
|||
$include /etc/inputrc
|
||||
set bell-style none
|
||||
set colored-completion-prefix on
|
||||
set colored-stats on
|
||||
set completion-ignore-case on
|
||||
set completion-query-items 200
|
||||
set editing-mode vi
|
||||
set history-preserve-point on
|
||||
set history-size 10000
|
||||
set horizontal-scroll-mode off
|
||||
set mark-directories on
|
||||
set mark-modified-lines off
|
||||
set mark-symlinked-directories on
|
||||
set match-hidden-files on
|
||||
set menu-complete-display-prefix on
|
||||
set page-completions on
|
||||
set print-completions-horizontally off
|
||||
set revert-all-at-newline off
|
||||
set show-all-if-ambiguous on
|
||||
set show-all-if-unmodified on
|
||||
set show-mode-in-prompt on
|
||||
set skip-completed-text on
|
||||
set visible-stats off
|
||||
|
||||
$if mode=vi
|
||||
# these are for vi-command mode
|
||||
set keymap vi-command
|
|
@ -17,9 +17,15 @@ in
|
|||
};
|
||||
# FIXME This doesn't work
|
||||
|
||||
fonts.monospace = {
|
||||
package = pkgs.nerdfonts;
|
||||
name = "DejaVuSansM Nerd Font";
|
||||
fonts = {
|
||||
sizes = {
|
||||
applications = 10;
|
||||
terminal = 10;
|
||||
};
|
||||
monospace = {
|
||||
package = pkgs.nerdfonts;
|
||||
name = "DejaVuSansM Nerd Font";
|
||||
};
|
||||
};
|
||||
|
||||
targets.vim.enable = false; # FIXME Not compatible with nixvim for now (there's a MR)
|
||||
|
|
|
@ -172,7 +172,10 @@ in
|
|||
enable = true;
|
||||
settings.plugins = {
|
||||
black.enabled = true;
|
||||
flake8.enabled = true;
|
||||
flake8 = {
|
||||
enabled = true;
|
||||
maxLineLength = 88; # Compatibility with Black
|
||||
};
|
||||
isort.enabled = true;
|
||||
mccabe.enabled = true;
|
||||
pycodestyle.enabled = true;
|
||||
|
|
Loading…
Reference in a new issue