-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.nix
79 lines (72 loc) · 1.48 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
config,
lib,
inputs,
...
}:
with lib; {
home-manager = {
extraSpecialArgs = inputs;
users.alex = {
pkgs,
lib,
...
}: {
imports = [
inputs.emacs-nix.nixosModules.emacs-nix
./emacs.nix
./packages.nix
./alacritty.nix
./files.nix
./foot.nix
./git.nix
./gtk.nix
./direnv.nix
./fish.nix
./gammastep.nix
./systemd.nix
./sway.nix
./gpg.nix
./helix.nix
];
options = {
dots = mkOption {
type = types.path;
};
scripts = mkOption {
type = types.path;
};
modifier = mkOption {
type = types.str;
};
machine = mkOption {
type = types.enum [
"laptop"
"desktop"
"rpi"
"framework"
];
};
};
config = {
_module.args.setEnvironment = config.system.build.setEnvironment;
nixpkgs.config = {
allowBroken = true;
allowUnfree = true;
allowUnsupportedSystem = true;
oraclejdk.accept_license = true;
};
services.kdeconnect = {
enable = true;
indicator = true;
};
nixpkgs.overlays = config.nixpkgs.overlays;
dots = ./.;
scripts = ./scripts;
modifier = "Mod4";
machine = config.machine;
home.stateVersion = "20.09";
};
};
};
}