-
Notifications
You must be signed in to change notification settings - Fork 0
/
profiles.nix
141 lines (122 loc) · 3.67 KB
/
profiles.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{ self
, nixpkgs
, agenix
, nixvim
, lib
, nix-index-database
}:
rec {
laptop = {
touchpad = true;
battery = true;
bluetooth = true;
};
stateVersion = "21.11";
ivv =
let
username = "ivv";
in
{
inherit username;
commonSpecialArgs = {
inherit username nixpkgs nixvim nix-index-database;
dotfiles-flake = self;
};
modules = [
./modules/nix.nix
];
home-manager = {
enable = true;
inherit username;
modules = [
./home-manager/modules/alacritty.nix
./home-manager/default.nix
./home-manager/packages.nix
./home-manager/modules/less.nix
./home-manager/modules/nix-index.nix
./home-manager/modules/readline.nix
./home-manager/modules/fzf.nix
./home-manager/modules/git.nix
./home-manager/modules/zsh.nix
./home-manager/modules/neovim
./home-manager/modules/bat.nix
./home-manager/modules/discord.nix
./home-manager/modules/helix.nix
./home-manager/modules/gdb.nix
];
extraConfig = {
home.stateVersion = stateVersion;
};
};
extraConfig = {
nixpkgs.overlays = [ self.overlays.default ];
};
};
ivv-linux = ivv // {
specialArgs = {
inherit agenix;
};
modules = [
./modules/linux/hardware.nix
./modules/linux/system.nix
./modules/linux/steam.nix
./modules/linux/graphical.nix
./modules/linux/flatpak.nix
./modules/linux/networking.nix
./modules/linux/gpg.nix
./modules/linux/agenix.nix
./modules/linux/docker.nix
./modules/linux/perf.nix
./modules/linux/audio.nix
./modules/linux/jellyfin.nix
./modules/linux/zerotierone.nix
./modules/linux/greetd.nix
./modules/linux/sunshine.nix
#./modules/linux/android.nix
] ++ ivv.modules;
home-manager = ivv.home-manager // {
enable = true;
modules = [
./home-manager/modules/linux/dunst.nix
./home-manager/modules/linux/xresources.nix
./home-manager/modules/linux/gtk.nix
./home-manager/modules/linux/i3-sway
# TODO: re-enable on Darwin once the following issue is fixed: https://github.com/NixOS/nixpkgs/issues/327836
./home-manager/modules/mpv.nix
# TODO: re-enable on Darwin once `pyobjc` is packaged and added to qutebrowser. Without this qutebrowser throws an error upon startup.
# See the following issue for more information: https://github.com/NixOS/nixpkgs/issues/101360
./home-manager/modules/qutebrowser.nix
] ++ ivv.home-manager.modules;
};
# TODO: enable networking config for darwin too
extraConfig = {
networking.extraHosts = ''
192.168.1.44 pc
192.168.1.37 laptop
192.168.7.2 rpi
'';
users.users.${ivv.username}.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFzp7kYG8wHjoU1Ski/hABNuT3puOT3icW9DYnweJdR0 ivv@nixos-pc"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZS38w38lOTIkwTWwnZHFpKIhTKFbj90iDsMjFK7E2G ivv@nixos-laptop"
];
system.stateVersion = stateVersion;
} // ivv.extraConfig;
};
ivv-darwin = ivv // {
modules = [
./modules/darwin
./modules/darwin/applications.nix
./modules/darwin/yabai
./modules/darwin/skhd
./modules/darwin/nixos-builder.nix
] ++ ivv.modules;
home-manager = ivv.home-manager // {
modules = [
./home-manager/modules/darwin/swiftbar
] ++ ivv.home-manager.modules;
};
commonSpecialArgs = ivv.commonSpecialArgs // {
wayland = false;
};
};
}