NixOS 24.11: Some warnings removed

The lualine ones I'll have to see if it changes the way I want.
This commit is contained in:
Geoffrey Frogeye 2024-12-03 19:04:35 +01:00
parent b9bd255a55
commit f9d943ef63
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
5 changed files with 114 additions and 82 deletions

View file

@ -390,6 +390,22 @@
"type": "github" "type": "github"
} }
}, },
"labellenixpkgs": {
"locked": {
"lastModified": 1732691756,
"narHash": "sha256-/XYtpmaMUhgxebN6dJKOcy70Gf50nf+RHfQhZgbjNYc=",
"owner": "FabianRig",
"repo": "nixpkgs",
"rev": "3da636775e87fe45fe5bbe79dafb2d8ea36648ec",
"type": "github"
},
"original": {
"owner": "FabianRig",
"ref": "update-labelle-1.3.2",
"repo": "nixpkgs",
"type": "github"
}
},
"nix-darwin": { "nix-darwin": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -630,16 +646,33 @@
"type": "github" "type": "github"
} }
}, },
"onixpkgs": {
"locked": {
"lastModified": 1730137625,
"narHash": "sha256-9z8oOgFZiaguj+bbi3k4QhAD6JabWrnv7fscC/mt0KE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "64b80bfb316b57cdb8919a9110ef63393d74382a",
"type": "github"
},
"original": {
"id": "nixpkgs",
"rev": "64b80bfb316b57cdb8919a9110ef63393d74382a",
"type": "indirect"
}
},
"root": { "root": {
"inputs": { "inputs": {
"disko": "disko", "disko": "disko",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"home-manager": "home-manager", "home-manager": "home-manager",
"labellenixpkgs": "labellenixpkgs",
"nix-on-droid": "nix-on-droid", "nix-on-droid": "nix-on-droid",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixvim": "nixvim", "nixvim": "nixvim",
"nur": "nur", "nur": "nur",
"onixpkgs": "onixpkgs",
"stylix": "stylix", "stylix": "stylix",
"unixpkgs": "unixpkgs" "unixpkgs": "unixpkgs"
} }
@ -679,17 +712,17 @@
"tinted-tmux": "tinted-tmux" "tinted-tmux": "tinted-tmux"
}, },
"locked": { "locked": {
"lastModified": 1733153724, "lastModified": 1732993760,
"narHash": "sha256-28nueT0pl+YpwUey44InOqct4+7p+DkiKOfkBBDCOeU=", "narHash": "sha256-t1J6wgzGjvvGNfdd0ei8HnZf9sTw+SpvCNAX0i6Qgwc=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "74ee1ed5057e44edbcc36aa189a91d31eda60485", "rev": "d13ffb381c83b6139b9d67feff7addf18f8408fe",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "danth", "owner": "danth",
"ref": "master",
"repo": "stylix", "repo": "stylix",
"rev": "d13ffb381c83b6139b9d67feff7addf18f8408fe",
"type": "github" "type": "github"
} }
}, },

View file

@ -54,7 +54,7 @@ in
krita krita
# downloading # downloading
transmission-qt transmission_4-qt
# wine only makes sense on x86_64 # wine only makes sense on x86_64
] ++ lib.optionals pkgs.stdenv.isx86_64 [ ] ++ lib.optionals pkgs.stdenv.isx86_64 [
wine wine

View file

@ -53,19 +53,21 @@ in
# Catches attention when cursor changed position # Catches attention when cursor changed position
specs = { specs = {
enable = true; enable = true;
settings = {
min_jump = 5; min_jump = 5;
settings.popup.fader = "require('specs').pulse_fader"; popup.fader = "require('specs').pulse_fader";
};
}; };
# Treesitter # Treesitter
treesitter = { treesitter = {
# Allows for better syntax highlighting # Allows for better syntax highlighting
enable = true; enable = true;
incrementalSelection = { settings = {
enable = true; incremental_selection.enable = true;
};
# indent = true; # Not very working last time I tried apparently # indent = true; # Not very working last time I tried apparently
}; };
};
indent-blankline.enable = true; # Show indent guides indent-blankline.enable = true; # Show indent guides
rainbow-delimiters.enable = true; # Randomly colore paired brackets rainbow-delimiters.enable = true; # Randomly colore paired brackets

View file

@ -51,9 +51,10 @@
normal_ina = { fg = base02; bg = base01; }; normal_ina = { fg = base02; bg = base01; };
inverted_ina = { fg = base00; bg = base02; }; inverted_ina = { fg = base00; bg = base02; };
in in
rec { {
enable = true; enable = true;
inactiveSections = sections; settings = rec {
inactive_sections = sections;
sections = { sections = {
lualine_a = [{ lualine_a = [{
name = ''string.format('%d', vim.fn.line('$'))''; name = ''string.format('%d', vim.fn.line('$'))'';
@ -70,7 +71,6 @@
end end
''; '';
}; };
extraConfig = {
path = 1; # Relative path path = 1; # Relative path
symbols = { symbols = {
modified = ""; modified = "";
@ -78,21 +78,18 @@
readonly = "󰏯"; readonly = "󰏯";
unnamed = "󱀶"; unnamed = "󱀶";
}; };
};
} }
"location"]; "location"];
lualine_x = [{ lualine_x = [{
name = ''(next(vim.lsp.buf_get_clients()) == nil) and "󰒲 " or ""''; name = ''(next(vim.lsp.buf_get_clients()) == nil) and "󰒲 " or ""'';
extraConfig.separator = { left = ""; right = ""; }; separator = { left = ""; right = ""; };
}] ++ (lib.mapAttrsToList }] ++ (lib.mapAttrsToList
(diag_name: diag_color: { (diag_name: diag_color: {
name = "diagnostics"; name = "diagnostics";
extraConfig = {
color.bg = diag_color; color.bg = diag_color;
colored = false; colored = false;
separator = { left = ""; right = ""; }; separator = { left = ""; right = ""; };
sections = [ diag_name ]; sections = [ diag_name ];
};
}) })
{ {
error = base08; error = base08;
@ -102,7 +99,6 @@
}); });
lualine_y = [{ lualine_y = [{
name = "diff"; name = "diff";
extraConfig = {
diff_color = { diff_color = {
added.fg = base0B; added.fg = base0B;
modified.fg = base0A; modified.fg = base0A;
@ -113,7 +109,6 @@
modified = " "; modified = " ";
removed = " "; removed = " ";
}; };
};
} }
"branch"]; "branch"];
lualine_z = [ lualine_z = [
@ -122,7 +117,7 @@
"encoding" "encoding"
]; ];
}; };
theme = (lib.mapAttrs options.theme = (lib.mapAttrs
(mode_name: mode_color: { (mode_name: mode_color: {
a = inverted; a = inverted;
b = inverted // { bg = mode_color; gui = "bold"; }; b = inverted // { bg = mode_color; gui = "bold"; };
@ -148,11 +143,13 @@
}; };
}; };
}; };
};
# Show context on top if scrolled out # Show context on top if scrolled out
treesitter-context = { treesitter-context = {
enable = true; enable = true;
settings.max_lines = 5; settings.max_lines = 5;
}; };
web-devicons.enable = true; # TODO Check out plugins.mini.enable
}; };
}; };
}; };

View file

@ -79,7 +79,7 @@
# Or at least something to live_grep the curent word. # Or at least something to live_grep the curent word.
# Surrounding pairs # Surrounding pairs
surround.enable = true; # Change surrounding pairs (e.g. brackets, quotes) vim-surround.enable = true; # Change surrounding pairs (e.g. brackets, quotes)
undotree.enable = true; # Navigate edition history undotree.enable = true; # Navigate edition history