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

{ config, ... }:

{
  imports = [
    (import ./adblock.nix inputs)
    (import ./commandline.nix inputs)
    (import ./localization.nix inputs)
    (import ./nix.nix inputs)
    (import ./nixvim.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;
    })
  ];

  services.nscd.enableNsncd = true;
}