-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
93 lines (82 loc) · 2.8 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
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
config,
lib,
pkgs,
...
}: {
imports = [
./secrets/secrets.nix
./network/network.nix
];
nix.settings.experimental-features = ["nix-command" "flakes"];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
time.timeZone = "Europe/Portugal";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = lib.mkForce "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
# Enable the X11 windowing system.
# services.xserver.enable = true;
system.autoUpgrade = {
enable = true;
flags = [
"--update-input"
"nixpkgs"
"-L" # print build logs
];
dates = "02:00";
randomizedDelaySec = "45min";
};
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.styly = {
isNormalUser = true;
extraGroups = ["wheel" "docker"]; # Enable ‘sudo’ for the user.
packages = with pkgs; [
btop
];
# mkpasswd -m sha512
hashedPassword = "$6$zyI9LBX/4MLXu2J0$pkdtrESkCzEFfytzXfCYaaatZRDMjbTkwEXVq2DiQg9ZY33jIMlrIjgysGj2LU6ROPYnfuAGycA1apJXmWCRo/";
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHQK+O1TOL2qDje6J/QyfyjdZXvVfx4h69HlVhZzMYUV styly@Archie"];
};
environment.systemPackages = with pkgs; [
neovim
fzf
git
docker
docker-compose
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
virtualisation.oci-containers.backend = "docker";
networking.firewall.enable = false;
services.openssh.enable = true;
system.stateVersion = "24.05"; # Did you read the comment?
}