summaryrefslogtreecommitdiffstats
path: root/examples/nixos/configuration.nix
blob: ff44f32e84d38a360121e941672fcb1d8f6f0903 (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
{
  inputs,
  pkgs,
  lib,
  ...
}:
{
  imports = [ inputs.mnw.nixosModules.default ];

  programs.mnw = {
    enable = true;
    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";
      };
    };
  };

  # Other configuration here

  # These are dummy options to allow eval
  nixpkgs.hostPlatform = "x86_64-linux";
  boot.loader.grub.enable = false;
  fileSystems."/".device = "nodev";
  system.stateVersion = lib.trivial.release;
}