summary refs log tree commit diff stats
path: root/user/settings/nix.nix
blob: 702e2ebde1e80051c92f02b1afb7ba0b908c90a0 (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
{ config
, pkgs
, ...
}:
let
  toml = pkgs.formats.toml { };
in
{
  imports = [
    ../../pin.nix
  ];
  nixpkgs.config = import ../config.nix;
  home.packages = with pkgs; [
    nil
    nix-prefetch-scripts
    nix-init
    nixpkgs-fmt
  ];
  xdg.configFile."nix-init/config.toml".source = toml.generate "config.toml" {
    maintainers = [ "alanpearce" ];
    nixpkgs = "builtins.getFlake \"nixpkgs\"";
  };
  nixpkgs.overlays = [
    (import ../overlays/extra-packages.nix)
  ];
  programs.emacs.extraPackages = epkgs: (with epkgs; [
    nix-mode
    nix-update
  ]);
  programs.neovim.plugins = with pkgs.vimPlugins; [
    vim-nix
  ];
}