try image handler for nvim
This commit is contained in:
16
flake.nix
16
flake.nix
@@ -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 {
|
||||
|
||||
@@ -17,6 +17,7 @@ let
|
||||
./git.nix
|
||||
./lightline.nix
|
||||
./lsp.nix
|
||||
./images.nix
|
||||
./none-ls.nix
|
||||
./nvim-tree.nix
|
||||
./telescope.nix
|
||||
|
||||
11
home-manager/nixvim/images.nix
Normal file
11
home-manager/nixvim/images.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{pkgs, ...}:
|
||||
{
|
||||
plugins = {
|
||||
image.enable = true;
|
||||
clipboard-image = {
|
||||
# todo change based on graphical settings
|
||||
clipboardPackage = pkgs.wl-clipboard;
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
gopls.enable = true;
|
||||
nixd.enable = true;
|
||||
csharp-ls.enable = true;
|
||||
typst-lsp.enable = true;
|
||||
};
|
||||
keymaps.lspBuf = {
|
||||
gd = {
|
||||
|
||||
Reference in New Issue
Block a user