summary refs log tree commit diff stats
path: root/user/settings/nix.nix
blob: 66c00dafc455c4f0705438c981343af5d2900b02 (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
43
44
45
{ config
, pkgs
, lib
, ...
}:
let
  toml = pkgs.formats.toml { };
in
{
  nixpkgs.config = import ../config.nix;
  nix = {
    enable = true;
    # needed for "standalone" home-manager, conflicts with module
    package = lib.mkDefault pkgs.nix;
    settings = {
      use-xdg-base-directories = true;
    };
  };

  home.packages = with pkgs; [
    cached-nix-shell
    nil
    npins
    nix-prefetch-scripts
    nix-init
    nix-update
    nix-tree
    common-updater-scripts
    nixpkgs-fmt
    nixpkgs-lint
    nixpkgs-review
    nix-output-monitor
  ];
  xdg.configFile."nix-init/config.toml".source = toml.generate "config.toml" {
    maintainers = [ "alanpearce" ];
    nixpkgs = "<nixpkgs>";
  };
  programs.emacs.extraPackages = epkgs: (with epkgs; [
    nix-mode
    nix-update
  ]);
  programs.neovim.plugins = with pkgs.vimPlugins; [
    vim-nix
  ];
}