24.05: Fixed warnings

This commit is contained in:
Geoffrey Frogeye 2024-06-01 21:32:11 +02:00
parent 71385d9ba9
commit 3479927d32
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
9 changed files with 52 additions and 47 deletions

View file

@ -19,7 +19,7 @@ in
}; };
zsh = { zsh = {
enable = true; enable = true;
enableAutosuggestions = true; autosuggestion.enable = true;
enableCompletion = true; enableCompletion = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
historySubstringSearch.enable = true; historySubstringSearch.enable = true;

View file

@ -32,7 +32,7 @@ in
vim-shot-f # Highlight relevant characters for f/F/t/T modes vim-shot-f # Highlight relevant characters for f/F/t/T modes
quick-scope # Highlight relevant characters for f/F modes one per word but always quick-scope # Highlight relevant characters for f/F modes one per word but always
]; ];
options = { opts = {
# From https://www.hillelwayne.com/post/intermediate-vim/ # From https://www.hillelwayne.com/post/intermediate-vim/
scrolloff = 10; scrolloff = 10;
lazyredraw = true; # Do not redraw screen in the middle of a macro. Makes them complete faster. lazyredraw = true; # Do not redraw screen in the middle of a macro. Makes them complete faster.

View file

@ -34,7 +34,7 @@
] ++ (map ] ++ (map
(n: { key = "<C-${builtins.toString n}>"; action = "<Cmd>BufferGoto ${builtins.toString n}<CR>"; inherit options; }) (n: { key = "<C-${builtins.toString n}>"; action = "<Cmd>BufferGoto ${builtins.toString n}<CR>"; inherit options; })
(lib.lists.range 1 9)); (lib.lists.range 1 9));
options = { opts = {
showmode = false; showmode = false;
number = true; number = true;
relativenumber = true; relativenumber = true;
@ -151,7 +151,7 @@
# Show context on top if scrolled out # Show context on top if scrolled out
treesitter-context = { treesitter-context = {
enable = true; enable = true;
maxLines = 5; settings.max_lines = 5;
}; };
}; };
}; };

View file

@ -13,7 +13,7 @@
}; };
programs.nixvim = { programs.nixvim = {
colorschemes.base16.setUpBar = false; # We want the custom theme for lualine, probably colorschemes.base16.setUpBar = false; # We want the custom theme for lualine, probably
options = { opts = {
ignorecase = true; ignorecase = true;
smartcase = true; smartcase = true;
gdefault = true; gdefault = true;
@ -52,23 +52,27 @@
gS = "search_history"; gS = "search_history";
gC = "commands"; gC = "commands";
}; };
defaults = { settings = {
vimgrep_arguments = [ defaults = {
"${pkgs.ripgrep}/bin/rg" vimgrep_arguments = [
"--color=never" "${pkgs.ripgrep}/bin/rg"
"--no-heading" "--color=never"
"--with-filename" "--no-heading"
"--line-number" "--with-filename"
"--column" "--line-number"
"--smart-case" "--column"
]; "--smart-case"
];
};
}; };
extensions.fzf-native = { extensions.fzf-native = {
enable = true; enable = true;
caseMode = "smart_case"; settings = {
fuzzy = true; case_mode = "smart_case";
overrideFileSorter = true; fuzzy = true;
overrideGenericSorter = true; override_file_sorter = true;
override_generic_sorter = true;
};
}; };
}; };
# TODO Go to any symbol in the current working directory, for when LSP doesn't support it. # TODO Go to any symbol in the current working directory, for when LSP doesn't support it.

View file

@ -15,8 +15,7 @@
{ {
mode = "n"; mode = "n";
key = "<space>wl"; key = "<space>wl";
lua = true; action.__raw = ''
action = ''
function() function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders())) print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end end
@ -26,8 +25,7 @@
{ {
mode = "n"; mode = "n";
key = "<space>f"; key = "<space>f";
lua = true; action.__raw = ''
action = ''
function() function()
vim.lsp.buf.format { async = true } vim.lsp.buf.format { async = true }
end end

View file

@ -3,41 +3,43 @@
config = lib.mkIf config.frogeye.desktop.xorg { config = lib.mkIf config.frogeye.desktop.xorg {
services = { services = {
blueman.enable = true; blueman.enable = true;
displayManager.defaultSession = "none+i3";
xserver = { xserver = {
enable = true; enable = true;
windowManager.i3.enable = true; windowManager.i3.enable = true;
displayManager.defaultSession = "none+i3";
# Keyboard layout # Keyboard layout
extraLayouts.qwerty-fr = { xkb = {
description = "QWERTY-fr"; extraLayouts.qwerty-fr = {
languages = [ "fr" ]; description = "QWERTY-fr";
symbolsFile = "${pkgs.stdenv.mkDerivation { languages = [ "fr" ];
name = "qwerty-fr-keypad"; symbolsFile = "${pkgs.stdenv.mkDerivation {
src = builtins.fetchGit { name = "qwerty-fr-keypad";
url = "https://github.com/qwerty-fr/qwerty-fr.git"; src = builtins.fetchGit {
rev = "3a4d13089e8ef016aa20baf6b2bf3ea53de674b8"; url = "https://github.com/qwerty-fr/qwerty-fr.git";
rev = "3a4d13089e8ef016aa20baf6b2bf3ea53de674b8";
};
patches = [ ./qwerty-fr-keypad.diff ];
# TODO This doesn't seem to be applied... it's the whole point of the derivation :(
installPhase = ''
runHook preInstall
mkdir -p $out/linux
cp $src/linux/us_qwerty-fr $out/linux
runHook postInstall
'';
}}/linux/us_qwerty-fr";
}; };
patches = [ ./qwerty-fr-keypad.diff ]; layout = "qwerty-fr";
# TODO This doesn't seem to be applied... it's the whole point of the derivation :(
installPhase = ''
runHook preInstall
mkdir -p $out/linux
cp $src/linux/us_qwerty-fr $out/linux
runHook postInstall
'';
}}/linux/us_qwerty-fr";
}; };
layout = "qwerty-fr";
}; };
}; };
# Enable sound & bluetooth # Enable sound & bluetooth
sound.enable = true; sound.enable = true;
hardware = { hardware = {
bluetooth.enable = true; bluetooth.enable = true;
pulseaudio.enable = true; pulseaudio.enable = true;
# TODO Try pipewire # TODO Try pipewire
}; };
# So we can use gnome3 pinentry flavour # So we can use gnome3 pinentry flavour

View file

@ -41,7 +41,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
# Because everything is encrypted and I'm the only user, this is fine. # Because everything is encrypted and I'm the only user, this is fine.
services.xserver.displayManager.autoLogin.user = "geoffrey"; services.displayManager.autoLogin.user = "geoffrey";
}; };
imports = [ imports = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View file

@ -3,7 +3,7 @@
config = lib.mkIf config.services.printing.enable { config = lib.mkIf config.services.printing.enable {
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns4 = true;
openFirewall = true; openFirewall = true;
}; };
}; };

1
result-buildable Symbolic link
View file

@ -0,0 +1 @@
/nix/store/6887mr1xmcjgb99saw2ilv2mfjb8s2xq-nixos-system-curacao-24.05.20240531.805a384