all repos — nixfiles @ main

System and user configuration, managed by nix and home-manager

user/settings/nix.nix (view raw)

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
46
47
48
49
50
51
52
{
  config,
  pkgs,
  lib,
  ...
}:
let
  toml = pkgs.formats.toml { };
  lixPackageSet = pkgs.lixPackageSets.latest;
in
{
  nixpkgs.config = import ../config.nix;
  nix = {
    enable = true;
    # needed for "standalone" home-manager, conflicts with module
    package = lib.mkDefault lixPackageSet.lix;
  };
  programs.direnv.nix-direnv.package = lixPackageSet.nix-direnv;

  programs.nix-init = {
    enable = true;
    settings = {
      maintainers = [ "alanpearce" ];
      nixpkgs = "builtins.getFlake \"nixpkgs\"";
    };
  };

  home.packages = with pkgs; [
    cached-nix-shell
    nil
    nixd
    angrr
    nix-update
    nix-tree
    common-updater-scripts
    nixfmt-tree
    nixfmt-rfc-style
    nixpkgs-lint
    nixpkgs-review
    lixPackageSet.nix-fast-build
  ];
  programs.emacs.extraPackages =
    epkgs:
    (with epkgs; [
      nix-mode
      nix-update
    ]);
  programs.nixvim.plugins = {
    nix.enable = true;
    lsp.servers.nixd.enable = true;
  };
}