Compare commits
No commits in common. "0316638e21f388dfb2d800968fa860137fd522f0" and "b9974a790a8b44c8950817a85f69023bf7ea1968" have entirely different histories.
0316638e21
...
b9974a790a
1
config/ccache.conf
Normal file
1
config/ccache.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ccache_dir = $HOME/.cache/ccache
|
3
config/flake8
Normal file
3
config/flake8
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[flake8]
|
||||||
|
# Compatibility with Black
|
||||||
|
max-line-length = 88
|
3
config/gdbinit
Normal file
3
config/gdbinit
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
define hook-quit
|
||||||
|
set confirm off
|
||||||
|
end
|
1
config/git/.gitignore
vendored
Normal file
1
config/git/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
gitk
|
19
config/git/config
Normal file
19
config/git/config
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
[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
|
||||||
|
|
5
config/git/gitignore
Normal file
5
config/git/gitignore
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*.ycm_extra_conf.py
|
||||||
|
tags
|
||||||
|
.mypy_cache
|
1
config/gtk-3.0/.gitignore
vendored
Normal file
1
config/gtk-3.0/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bookmarks
|
16
config/gtk-3.0/settings.ini
Normal file
16
config/gtk-3.0/settings.ini
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[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
|
61
config/iftoprc
Normal file
61
config/iftoprc
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
# 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.
|
||||||
|
|
|
@ -1,3 +1,27 @@
|
||||||
|
$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
|
$if mode=vi
|
||||||
# these are for vi-command mode
|
# these are for vi-command mode
|
||||||
set keymap vi-command
|
set keymap vi-command
|
|
@ -134,7 +134,7 @@ in
|
||||||
diff = "diff --color=auto";
|
diff = "diff --color=auto";
|
||||||
dmesg = "dmesg --ctime";
|
dmesg = "dmesg --ctime";
|
||||||
wget = "wget --hsts-file ${config.xdg.cacheHome}/wget-hsts";
|
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
|
# 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
|
# Could also accept my fate... Home-manager doesn't necessarily make it easy to put things out of the home directory
|
||||||
historySize = 100000;
|
historySize = 100000;
|
||||||
|
@ -241,8 +241,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
defaultOptions = [ "--height 40%" "--layout=default" ];
|
defaultOptions = [ "--height 40%" "--layout=default" ];
|
||||||
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'" ];
|
fileWidgetOptions = [ "--preview '[[ -d {} ]] && ls -l --color=always {} || [[ \$(file --mime {}) =~ binary ]] && file --brief {} || (highlight -O ansi -l {} || coderay {} || rougify {} || 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
|
# TODO highlight or bat
|
||||||
nix-index = {
|
nix-index = {
|
||||||
|
@ -250,66 +249,6 @@ in
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
less.enable = 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 = {
|
services = {
|
||||||
gpg-agent = {
|
gpg-agent = {
|
||||||
|
@ -322,32 +261,6 @@ in
|
||||||
# FIXME For g extension, as base is not supposed to have private keys
|
# 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 = {
|
home = {
|
||||||
stateVersion = "23.05";
|
stateVersion = "23.05";
|
||||||
language = {
|
language = {
|
||||||
|
@ -362,6 +275,7 @@ in
|
||||||
gnused
|
gnused
|
||||||
gnutar
|
gnutar
|
||||||
openssl
|
openssl
|
||||||
|
git
|
||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
python3Packages.pip
|
python3Packages.pip
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
# TODO Is a shell script even required?
|
# TODO Is a shell script even required?
|
||||||
}";
|
}";
|
||||||
"${mod}+Shift+Return" = "exec ${config.programs.urxvt.package}/bin/urxvt";
|
"${mod}+Shift+Return" = "exec ${config.programs.urxvt.package}/bin/urxvt";
|
||||||
"${mod}+p" = "exec ${pkgs.xfce.thunar}/bin/thunar";
|
"${mod}+p" = "exec ${pkgs.xfce.thunar}/bin/tunar";
|
||||||
"${mod}+m" = "exec ${config.programs.qutebrowser.package}/bin/qutebrowser --override-restore --backend=webengine";
|
"${mod}+m" = "exec ${config.programs.qutebrowser.package}/bin/qutebrowser --override-restore --backend=webengine";
|
||||||
# TODO --backend not useful anymore
|
# TODO --backend not useful anymore
|
||||||
# Volume control
|
# Volume control
|
||||||
|
|
|
@ -17,16 +17,10 @@ in
|
||||||
};
|
};
|
||||||
# FIXME This doesn't work
|
# FIXME This doesn't work
|
||||||
|
|
||||||
fonts = {
|
fonts.monospace = {
|
||||||
sizes = {
|
|
||||||
applications = 10;
|
|
||||||
terminal = 10;
|
|
||||||
};
|
|
||||||
monospace = {
|
|
||||||
package = pkgs.nerdfonts;
|
package = pkgs.nerdfonts;
|
||||||
name = "DejaVuSansM Nerd Font";
|
name = "DejaVuSansM Nerd Font";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
targets.vim.enable = false; # FIXME Not compatible with nixvim for now (there's a MR)
|
targets.vim.enable = false; # FIXME Not compatible with nixvim for now (there's a MR)
|
||||||
# targets.i3.enable = false; # I prefer my own styles
|
# targets.i3.enable = false; # I prefer my own styles
|
||||||
|
|
|
@ -172,10 +172,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.plugins = {
|
settings.plugins = {
|
||||||
black.enabled = true;
|
black.enabled = true;
|
||||||
flake8 = {
|
flake8.enabled = true;
|
||||||
enabled = true;
|
|
||||||
maxLineLength = 88; # Compatibility with Black
|
|
||||||
};
|
|
||||||
isort.enabled = true;
|
isort.enabled = true;
|
||||||
mccabe.enabled = true;
|
mccabe.enabled = true;
|
||||||
pycodestyle.enabled = true;
|
pycodestyle.enabled = true;
|
||||||
|
|
Loading…
Reference in a new issue