try image handler for nvim

This commit is contained in:
Kopatz
2024-05-28 10:08:05 +02:00
parent 9d72bb8dd0
commit 2a7725403d
4 changed files with 21 additions and 10 deletions

View File

@@ -41,7 +41,7 @@
system = "x86_64-linux";
# helper function to create a machine
mkHost = { modules, specialArgs ? { pkgsVersion = nixpkgs-unstable; }
, system ? "x86_64-linux", minimal ? false }:
, system ? "x86_64-linux", minimal ? false, stylix ? false }:
nixpkgs-unstable.lib.nixosSystem {
inherit system;
modules = modules ++ [
@@ -52,20 +52,17 @@
additions
modifications
unstable-packages
nur.overlay
];
})
] ++ (if !minimal then [
({ ... }: {
# stylix compains if image is not set...
stylix.autoEnable = true;
stylix.image = ./yuyukowallpaper1809.png;
})
home-manager-unstable.nixosModules.home-manager
nixos-cosmic.nixosModules.default
stylix.nixosModules.stylix
#todo: check how to actually do this
./modules/graphical/stylix.nix
./modules/graphical/cosmic.nix
] else
[ ]) ++ (if stylix then [
stylix.nixosModules.stylix
./modules/graphical/stylix.nix
] else
[ ]);
specialArgs = specialArgs // { inherit inputs outputs; };
@@ -92,6 +89,7 @@
};
};
"kop-pc" = mkHost {
stylix = true;
modules = [ ./users/kopatz ./systems/pc/configuration.nix ];
};
"nix-laptop" = mkHost {

View File

@@ -17,6 +17,7 @@ let
./git.nix
./lightline.nix
./lsp.nix
./images.nix
./none-ls.nix
./nvim-tree.nix
./telescope.nix

View File

@@ -0,0 +1,11 @@
{pkgs, ...}:
{
plugins = {
image.enable = true;
clipboard-image = {
# todo change based on graphical settings
clipboardPackage = pkgs.wl-clipboard;
enable = true;
};
};
}

View File

@@ -8,6 +8,7 @@
gopls.enable = true;
nixd.enable = true;
csharp-ls.enable = true;
typst-lsp.enable = true;
};
keymaps.lspBuf = {
gd = {