summaryrefslogtreecommitdiff
path: root/configuration.nix
blob: 733a476f8899f32a8f6a7126b21050befe249177 (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
{ config, ... }:

let
  home-manager = builtins.fetchTarball
    "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
  nix.settings.experimental-features = [
    "nix-command"
    "flakes"
  ];

  imports = [
    ./darwin.nix
    "${home-manager}/nix-darwin"
  ];

  home-manager = {
    useGlobalPkgs = true;
    useUserPackages = true;
    backupFileExtension = "backup";
    users.${config.system.primaryUser} = import ./home.nix;
  };
}