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

{ config, lib, ... }:

{
  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 ./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;
    })
  ];

  location = {
    latitude = lib.mkDefault 48.856667;
    longitude = lib.mkDefault 2.352222;
  };

  services.nscd.enableNsncd = true;

  environment.sessionVariables.DO_NOT_TRACK = "1";
}