try image handler for nvim
This commit is contained in:
18
flake.nix
18
flake.nix
@@ -41,7 +41,7 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
# helper function to create a machine
|
# helper function to create a machine
|
||||||
mkHost = { modules, specialArgs ? { pkgsVersion = nixpkgs-unstable; }
|
mkHost = { modules, specialArgs ? { pkgsVersion = nixpkgs-unstable; }
|
||||||
, system ? "x86_64-linux", minimal ? false }:
|
, system ? "x86_64-linux", minimal ? false, stylix ? false }:
|
||||||
nixpkgs-unstable.lib.nixosSystem {
|
nixpkgs-unstable.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = modules ++ [
|
modules = modules ++ [
|
||||||
@@ -52,22 +52,19 @@
|
|||||||
additions
|
additions
|
||||||
modifications
|
modifications
|
||||||
unstable-packages
|
unstable-packages
|
||||||
|
nur.overlay
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
] ++ (if !minimal then [
|
] ++ (if !minimal then [
|
||||||
({ ... }: {
|
|
||||||
# stylix compains if image is not set...
|
|
||||||
stylix.autoEnable = true;
|
|
||||||
stylix.image = ./yuyukowallpaper1809.png;
|
|
||||||
})
|
|
||||||
home-manager-unstable.nixosModules.home-manager
|
home-manager-unstable.nixosModules.home-manager
|
||||||
nixos-cosmic.nixosModules.default
|
nixos-cosmic.nixosModules.default
|
||||||
stylix.nixosModules.stylix
|
|
||||||
#todo: check how to actually do this
|
|
||||||
./modules/graphical/stylix.nix
|
|
||||||
./modules/graphical/cosmic.nix
|
./modules/graphical/cosmic.nix
|
||||||
] else
|
] else
|
||||||
[ ]);
|
[ ]) ++ (if stylix then [
|
||||||
|
stylix.nixosModules.stylix
|
||||||
|
./modules/graphical/stylix.nix
|
||||||
|
] else
|
||||||
|
[ ]);
|
||||||
specialArgs = specialArgs // { inherit inputs outputs; };
|
specialArgs = specialArgs // { inherit inputs outputs; };
|
||||||
};
|
};
|
||||||
in flake-utils.lib.eachDefaultSystem (system: {
|
in flake-utils.lib.eachDefaultSystem (system: {
|
||||||
@@ -92,6 +89,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
"kop-pc" = mkHost {
|
"kop-pc" = mkHost {
|
||||||
|
stylix = true;
|
||||||
modules = [ ./users/kopatz ./systems/pc/configuration.nix ];
|
modules = [ ./users/kopatz ./systems/pc/configuration.nix ];
|
||||||
};
|
};
|
||||||
"nix-laptop" = mkHost {
|
"nix-laptop" = mkHost {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ let
|
|||||||
./git.nix
|
./git.nix
|
||||||
./lightline.nix
|
./lightline.nix
|
||||||
./lsp.nix
|
./lsp.nix
|
||||||
|
./images.nix
|
||||||
./none-ls.nix
|
./none-ls.nix
|
||||||
./nvim-tree.nix
|
./nvim-tree.nix
|
||||||
./telescope.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;
|
gopls.enable = true;
|
||||||
nixd.enable = true;
|
nixd.enable = true;
|
||||||
csharp-ls.enable = true;
|
csharp-ls.enable = true;
|
||||||
|
typst-lsp.enable = true;
|
||||||
};
|
};
|
||||||
keymaps.lspBuf = {
|
keymaps.lspBuf = {
|
||||||
gd = {
|
gd = {
|
||||||
|
|||||||
Reference in New Issue
Block a user