-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdefault.nix
53 lines (47 loc) · 1.38 KB
/
default.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
config,
desktop,
lib,
outputs,
stateVersion,
username,
inputs,
...
}:
{
# Only import desktop configuration if the host is desktop enabled
# Only import user specific configuration if they have bespoke settings
imports =
[
# If you want to use modules your own flake exports (from modules/home-manager):
# outputs.homeManagerModules.example
# Or modules exported from other flakes (such as nix-colors):
# inputs.nix-colors.homeManagerModules.default
./common/shell
]
++ lib.optional (builtins.isString desktop) ./common/desktop
++ lib.optional (builtins.pathExists (
./. + "/common/users/${username}"
)) ./common/users/${username};
home = {
inherit username stateVersion;
homeDirectory = "/home/${username}";
};
nixpkgs = {
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
# You can also add overlays exported from other flakes:
inputs.agenix.overlays.default
];
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
permittedInsecurePackages = [ "electron-25.9.0" ];
};
};
}