Compare commits

...
1 Commits
Author SHA1 Message Date
leonhard 6b2bc536f7 fix: fix all the missed errors 2026-11-12 14:38:16 +01:00
19 changed files with 33 additions and 40 deletions

No files matched your search

+10 -1
View File
@@ -40,7 +40,16 @@
{ {
nixosConfigurations = import ./hosts { inherit self inputs; }; 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 ( packages = forAllSystems (
system: system:
+2 -1
View File
@@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
self, self,
... ...
}: }:
@@ -8,6 +9,6 @@
options.nix-leonhard.neovim.enable = lib.mkEnableOption "neovim"; options.nix-leonhard.neovim.enable = lib.mkEnableOption "neovim";
config = lib.mkIf config.nix-leonhard.neovim.enable { config = lib.mkIf config.nix-leonhard.neovim.enable {
home.packages = [ self.packages.nixvim ]; home.packages = [ self.packages.${pkgs.system}.nixvim ];
}; };
} }
+3 -2
View File
@@ -4,8 +4,9 @@
... ...
}: }:
{ {
nixvim = inputs.nixvim.lib.buildNixvimWith { nixvim =
(inputs.nixvim.lib.evalNixvim {
inherit (pkgs) system; inherit (pkgs) system;
modules = [ ./nixvim ]; modules = [ ./nixvim ];
}; }).config.build.package;
} }
-5
View File
@@ -5,17 +5,12 @@
./plugins ./plugins
]; ];
programs.nixvim = {
enable = true;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
colorschemes.tokyonight.enable = true; colorschemes.tokyonight.enable = true;
clipboard.providers.wl-copy.enable = true; clipboard.providers.wl-copy.enable = true;
globals.mapleader = " "; globals.mapleader = " ";
};
} }
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
programs.nixvim.keymaps = [ keymaps = [
{ {
mode = "n"; mode = "n";
key = "<Esc>"; key = "<Esc>";
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
programs.nixvim.opts = { opts = {
number = true; number = true;
relativenumber = true; relativenumber = true;
showmode = false; showmode = false;
-2
View File
@@ -1,5 +1,4 @@
{ {
programs.nixvim = {
plugins = { plugins = {
blink-indent.enable = true; blink-indent.enable = true;
blink-pairs.enable = true; blink-pairs.enable = true;
@@ -17,5 +16,4 @@
}; };
}; };
}; };
};
} }
-2
View File
@@ -1,5 +1,4 @@
{ {
programs.nixvim = {
plugins.dap = { plugins.dap = {
enable = true; enable = true;
luaConfig.content = '' luaConfig.content = ''
@@ -49,5 +48,4 @@
options.silent = true; options.silent = true;
} }
]; ];
};
} }
-2
View File
@@ -11,9 +11,7 @@
./which-key.nix ./which-key.nix
]; ];
programs.nixvim = {
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = with pkgs.vimPlugins; [
vim-sleuth vim-sleuth
]; ];
};
} }
-2
View File
@@ -1,6 +1,5 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.nixvim = {
opts.formatexpr = "v:lua.require'conform'.formatexpr()"; opts.formatexpr = "v:lua.require'conform'.formatexpr()";
keymaps = [ keymaps = [
@@ -41,5 +40,4 @@
nixfmt nixfmt
ruff ruff
]; ];
};
} }
-2
View File
@@ -3,7 +3,6 @@
./typst.nix ./typst.nix
]; ];
programs.nixvim = {
diagnostic.settings = { diagnostic.settings = {
severity_sort = true; severity_sort = true;
float = { float = {
@@ -59,5 +58,4 @@
}; };
}; };
}; };
};
} }
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
programs.nixvim.plugins.lualine = { plugins.lualine = {
enable = true; enable = true;
settings = { settings = {
options = { options = {
+4 -5
View File
@@ -1,10 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs; [ plugins.telescope = {
ripgrep
];
programs.nixvim.plugins.telescope = {
enable = true; enable = true;
extensions.fzf-native.enable = true; extensions.fzf-native.enable = true;
keymaps = { keymaps = {
@@ -43,4 +39,7 @@
"%.ipynb" "%.ipynb"
]; ];
}; };
extraPackages = with pkgs; [
ripgrep
];
} }
-2
View File
@@ -1,6 +1,5 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.nixvim = {
plugins.treesitter = { plugins.treesitter = {
enable = true; enable = true;
highlight.enable = true; highlight.enable = true;
@@ -10,5 +9,4 @@
extraPackages = with pkgs; [ extraPackages = with pkgs; [
gcc gcc
]; ];
};
} }
-2
View File
@@ -1,10 +1,8 @@
{ {
programs.nixvim = {
dependencies.tinymist.enable = true; dependencies.tinymist.enable = true;
dependencies.websocat.enable = true; dependencies.websocat.enable = true;
plugins.typst-preview.enable = true; plugins.typst-preview.enable = true;
plugins.lsp.servers.tinymist.enable = true; plugins.lsp.servers.tinymist.enable = true;
};
} }
+1 -1
View File
@@ -1,3 +1,3 @@
{ {
programs.nixvim.plugins.which-key.enable = true; plugins.which-key.enable = true;
} }
+3 -2
View File
@@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
inputs, inputs,
... ...
}: }:
@@ -10,6 +11,8 @@
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs; flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
in in
{ {
package = pkgs.nix;
# pin the registry to avoid downloading and evaling a new nixpkgs version every time # pin the registry to avoid downloading and evaling a new nixpkgs version every time
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs; registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
@@ -17,8 +20,6 @@
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry; nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
settings.experimental-features = "nix-command flakes"; settings.experimental-features = "nix-command flakes";
channels.enable = false;
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;
+3 -5
View File
@@ -1,15 +1,15 @@
{ {
pkgs, pkgs,
self,
inputs, inputs,
... ...
}: }:
let let
inherit (inputs.home-manager.lib) homeManagerConfiguration; inherit (inputs.home-manager.lib) homeManagerConfiguration;
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit self inputs; };
in in
{ homeManagerConfiguration {
leonhard = homeManagerConfiguration {
inherit pkgs extraSpecialArgs; inherit pkgs extraSpecialArgs;
modules = [ modules = [
./base.nix ./base.nix
@@ -18,8 +18,6 @@ in
{ {
nix-leonhard.graphical = false; nix-leonhard.graphical = false;
nix-leonhard.neovim.enable = true; nix-leonhard.neovim.enable = true;
nix-leonhard.neovim.typst.enable = true;
} }
]; ];
};
} }
+4 -1
View File
@@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
inputs, inputs,
... ...
}: }:
@@ -10,6 +11,8 @@
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs; flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
in in
{ {
package = pkgs.nix;
# pin the registry to avoid downloading and evaling a new nixpkgs version every time # pin the registry to avoid downloading and evaling a new nixpkgs version every time
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs; registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
@@ -21,6 +24,6 @@
"flakes" "flakes"
]; ];
channels.enable = false; channel.enable = false;
}; };
} }