summaryrefslogtreecommitdiffstats
path: root/common/default.nix
blob: 7b5373526d2cdfa982b80b5324403516d2baf5b9 (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
inputs:

{ config, lib, ... }:

{
  imports = [
    (import ./commandline.nix inputs)
    (import ./localization.nix inputs)
    (import ./nix.nix inputs)
    (import ./ssh.nix inputs)
    (import ./theme.nix inputs)
    (import ./tinc.nix inputs)
    (import ./unfree.nix inputs)
    (import ./vim.nix inputs)
    (import ./zram.nix inputs)
  ];

  nixpkgs.overlays = [
    (final: prev: {
      # Inheriting config allows adding unfree package using the option
      # nixpkgs.config.allowUnfreePredicate
      unstable = import inputs.nixpkgs-unstable {
        inherit (config.nixpkgs) system config;
      };

      inherit (import inputs.rycee-nur { pkgs = final; }) firefox-addons;
    })
  ];

  nix.registry = with lib;
    mapAttrs (name: value: { flake = value; }) inputs;

  services.nscd.enableNsncd = true;
}