-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
39 lines (36 loc) · 1.11 KB
/
home.nix
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
{
config,
pkgs,
lib,
...
}:
let
isMac = (lib.systems.elaborate builtins.currentSystem).isDarwin;
baseNix = if isMac then ./machine-types/osx.nix else ./machine-types/base.nix;
imports =
if builtins.pathExists ./local.nix then
[
baseNix
./local.nix
]
else
[ baseNix ];
in
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
##############################################################################
# Make any changes by editing ./local.nix or commiting changes in other files
##############################################################################
# pull in these and export in current context
imports = imports;
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "20.03";
}