-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
67 lines (61 loc) · 1.13 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
{
modulesPath,
pkgs,
nixpkgs,
...
}:
{
imports = [
"${modulesPath}/virtualisation/amazon-image.nix"
./nvidia.nix
];
system.stateVersion = "24.11";
nix = {
registry.nixpkgs.flake = nixpkgs;
settings.experimental-features = [
"nix-command"
"flakes"
];
};
nixpkgs.config = {
allowUnfree = true;
};
virtualisation.docker = {
enable = true;
enableOnBoot = true;
autoPrune.enable = true;
};
environment.systemPackages = with pkgs; [
docker-buildx
docker-compose
nettools
neovim
curl
python312
git
wget
dust
ripgrep
fd
bat
tree
unzip
htop
btop
];
security.sudo.wheelNeedsPassword = false;
services.openssh.enable = true;
users.mutableUsers = true;
users.users.nixos = {
isNormalUser = true;
initialPassword = "nixos"; # <<< This is the password you'll need to enter when sshing as `nixos` user
extraGroups = [
"docker"
"networkmanager"
"wheel"
];
# If you don't want to use a password, put your public ssh key here
# openssh.authorizedKeys.keys = [
# ];
};
}