fix: fix all the missed errors
This commit is contained in:
1 parent
882d8a6695
commit
cf6f3772ab
19 files changed
+33
-40
No files matched your search
@@ -40,7 +40,16 @@
|
||||
{
|
||||
nixosConfigurations = import ./hosts { inherit self inputs; };
|
||||
|
||||
homeConfigurations = import ./standalone { inherit self inputs; };
|
||||
# i. e. homeConfigurations.leonhard@x86_64-linux etc.
|
||||
homeConfigurations = builtins.listToAttrs (
|
||||
map (system: {
|
||||
name = "leonhard@${system}";
|
||||
value = import ./standalone {
|
||||
pkgs = pkgsFor system;
|
||||
inherit self inputs;
|
||||
};
|
||||
}) (import systems)
|
||||
);
|
||||
|
||||
packages = forAllSystems (
|
||||
system:
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
@@ -8,6 +9,6 @@
|
||||
options.nix-leonhard.neovim.enable = lib.mkEnableOption "neovim";
|
||||
|
||||
config = lib.mkIf config.nix-leonhard.neovim.enable {
|
||||
home.packages = [ self.packages.nixvim ];
|
||||
home.packages = [ self.packages.${pkgs.stdenv.hostPlatform.system}.nixvim ];
|
||||
};
|
||||
}
|
||||
+3
-2
@@ -4,8 +4,9 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
nixvim = inputs.nixvim.lib.buildNixvimWith {
|
||||
nixvim =
|
||||
(inputs.nixvim.lib.evalNixvim {
|
||||
inherit (pkgs) system;
|
||||
modules = [ ./nixvim ];
|
||||
};
|
||||
}).config.build.package;
|
||||
}
|
||||
@@ -5,17 +5,12 @@
|
||||
./plugins
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
defaultEditor = true;
|
||||
|
||||
colorschemes.tokyonight.enable = true;
|
||||
|
||||
clipboard.providers.wl-copy.enable = true;
|
||||
|
||||
globals.mapleader = " ";
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
programs.nixvim.keymaps = [
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<Esc>";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
programs.nixvim.opts = {
|
||||
opts = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
showmode = false;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
blink-indent.enable = true;
|
||||
blink-pairs.enable = true;
|
||||
@@ -17,5 +16,4 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.dap = {
|
||||
enable = true;
|
||||
luaConfig.content = ''
|
||||
@@ -49,5 +48,4 @@
|
||||
options.silent = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -11,9 +11,7 @@
|
||||
./which-key.nix
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-sleuth
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
opts.formatexpr = "v:lua.require'conform'.formatexpr()";
|
||||
|
||||
keymaps = [
|
||||
@@ -41,5 +40,4 @@
|
||||
nixfmt
|
||||
ruff
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
./typst.nix
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
diagnostic.settings = {
|
||||
severity_sort = true;
|
||||
float = {
|
||||
@@ -59,5 +58,4 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
programs.nixvim.plugins.lualine = {
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
settings = {
|
||||
options = {
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
];
|
||||
|
||||
programs.nixvim.plugins.telescope = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
extensions.fzf-native.enable = true;
|
||||
keymaps = {
|
||||
@@ -43,4 +39,7 @@
|
||||
"%.ipynb"
|
||||
];
|
||||
};
|
||||
extraPackages = with pkgs; [
|
||||
ripgrep
|
||||
];
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
highlight.enable = true;
|
||||
@@ -10,5 +9,4 @@
|
||||
extraPackages = with pkgs; [
|
||||
gcc
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,8 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
dependencies.tinymist.enable = true;
|
||||
dependencies.websocat.enable = true;
|
||||
|
||||
plugins.typst-preview.enable = true;
|
||||
|
||||
plugins.lsp.servers.tinymist.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
programs.nixvim.plugins.which-key.enable = true;
|
||||
plugins.which-key.enable = true;
|
||||
}
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
@@ -10,6 +11,8 @@
|
||||
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
|
||||
in
|
||||
{
|
||||
package = pkgs.nix;
|
||||
|
||||
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
|
||||
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
|
||||
|
||||
@@ -17,8 +20,6 @@
|
||||
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
||||
|
||||
settings.experimental-features = "nix-command flakes";
|
||||
|
||||
channels.enable = false;
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
pkgs,
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
||||
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
extraSpecialArgs = { inherit self inputs; };
|
||||
in
|
||||
{
|
||||
leonhard = homeManagerConfiguration {
|
||||
homeManagerConfiguration {
|
||||
inherit pkgs extraSpecialArgs;
|
||||
modules = [
|
||||
./base.nix
|
||||
@@ -18,8 +18,6 @@ in
|
||||
{
|
||||
nix-leonhard.graphical = false;
|
||||
nix-leonhard.neovim.enable = true;
|
||||
nix-leonhard.neovim.typst.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
+4
-1
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
@@ -10,6 +11,8 @@
|
||||
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
|
||||
in
|
||||
{
|
||||
package = pkgs.nix;
|
||||
|
||||
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
|
||||
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
|
||||
|
||||
@@ -21,6 +24,6 @@
|
||||
"flakes"
|
||||
];
|
||||
|
||||
channels.enable = false;
|
||||
channel.enable = false;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user