-
Notifications
You must be signed in to change notification settings - Fork 5
/
configuration.nix
106 lines (92 loc) · 1.97 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
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
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
nix.settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
};
system.autoUpgrade.enable = true;
# Set your time zone.
time.timeZone = "America/New_York";
#time.timeZone = "America/Los_Angeles";
# Define a user account.
users.users.anvil = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" "systemd-journal" ];
shell = pkgs.zsh;
hashedPassword = "${HASHED_PASSWORD}";
#packages = with pkgs; [];
};
security.sudo.wheelNeedsPassword = false;
users.defaultUserShell = pkgs.zsh;
environment.shells = [ pkgs.zsh ];
programs = {
zsh.enable = true;
nix-ld.enable = true;
};
# Use systemd-boot
boot.loader.systemd-boot.enable = true;
# disable ipv6
networking.enableIPv6 = false;
# Select internationalisation properties.
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
i18n.defaultLocale = "en_US.UTF-8";
environment.variables = {
TZ = config.time.timeZone;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
bash
cloud-init
coreutils
curl
docker
docker-buildx
docker-compose
eza
findutils
fzf
git
gnumake
gnutar
htop
iproute2
jq
killall
less
libuuid
linuxHeaders
mkpasswd
netcat
nettools
nmap
openssl
python3
python3Packages.pip
ripgrep
rsync
spice-vdagent
ssh-import-id
strace
sysstat
tealdeer
tree
tzdata
unzip
util-linux
wget
yq
zsh-autosuggestions
zsh-syntax-highlighting
];
#services.cloud-init.enable = true;
services.openssh.enable = true;
services.qemuGuest.enable = true;
virtualisation.docker.enable = true;
system.stateVersion = "23.11";
}