-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshared.nix
48 lines (43 loc) · 1.24 KB
/
shared.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
# Settings common to all the machines
{
cluster,
config,
lib,
pkgs,
...
}:
with lib; {
settings = {
# TODO only on NixOS
tailnet = "tailc84e6.ts.net";
# TODO only on NixOS
kubernetes.oauthClientId = "k4dhpL3CNTRL";
users.users = {
pilou = {
enable = true;
isAdmin = true;
publicKeys = cluster.adminKeys;
};
};
};
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
programs.zsh.enable = true;
# * Required for zsh completion, see: https://nix-community.github.io/home-manager/options.html#opt-programs.zsh.enableCompletion
environment.pathsToLink = ["/share/zsh"];
# TODO only if ui is enabled
fonts.packages = with pkgs; [
meslo-lg
meslo-lgs-nf
];
time.timeZone = "Europe/Brussels";
home-manager.users.pilou = import ./home-manager/pilou-minimal.nix;
users.users.pilou.extraGroups =
# pilou is a member of the kubernetes admin group, if kubernetes is enabled
(optional config.settings.kubernetes.enable config.settings.kubernetes.group)
# pilou is a member of the gitDaemon group, if gitDaemon is enabled
++ (optional config.services.gitDaemon.enable config.services.gitDaemon.group);
}