-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
71 lines (59 loc) · 1.52 KB
/
configuration.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
{
config,
pkgs,
lib,
...
}:
{
system.stateVersion = "23.11";
imports = [
./boot.nix
#./bootstrap.nix
./hardware-configuration.nix
./cacert.nix # ca cert
./hostkeys.nix # ssh host keys
];
# show ip on login screen
environment.etc."issue.d/ip.issue".text = "\\4\n";
networking.dhcpcd.runHook = "${pkgs.utillinux}/bin/agetty --reload";
networking.hostName = "devops";
time.timeZone = "Australia/Brisbane";
services.timesyncd.enable = false; # no ntp from corp
virtualisation.vmware.guest.enable = true; # timesync on required
nix.settings.experimental-features = [ "nix-command" "flakes" ];
users.users.vm = {
isNormalUser = true;
extraGroups = [];
# per user packages, these should go in per dev repo when vscode can set env from repo
# packages = with pkgs; [
# nodejs-18_x
# azure-cli
# (python311.withPackages(ps: with ps; [ mkdocs ]))
# ];
};
# packages for all users
environment.systemPackages = with pkgs; [
btop
git
nixd
];
# run unpatched binaries (vscode)
programs.nix-ld.enable = true;
# direnv for vscode
programs.direnv.enable = true;
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
settings.X11Forwarding = true;
};
# Enable podman/docker
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
}