summaryrefslogtreecommitdiffstats
path: root/examples/standalone/flake.nix
blob: 8829d2d63044579b77a575c3d13158bd7da6da73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
    mnw.url = "../../.";
    # If you're actually using this, change your input to this:
    #mnw.url = "github:Gerg-L/mnw";
  };
  outputs =
    {
      nixpkgs,
      mnw,
      self,
      ...
    }:
    {
      packages.x86_64-linux =
        let
          pkgs = nixpkgs.legacyPackages.x86_64-linux;
        in
        {
          default = mnw.lib.wrap pkgs {
            neovim = pkgs.neovim-unwrapped;
            initLua = ''
              require('myconfig')
            '';
            plugins = {
              start = [ pkgs.vimPlugins.oil-nvim ];
              dev.myconfig = {
                pure = ./nvim;
                impure =
                  # This is a hack it should be a absolute path
                  # here it'll only work from this directory
                  "/' .. vim.uv.cwd()  .. '/nvim";
              };

            };
          };

          dev = self.packages.x86_64-linux.default.devMode;
        };
    };
}