-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.nix
64 lines (49 loc) · 1.54 KB
/
common.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
{ config, pkgs, params, inputs, ... }:
{
# Enable flakes support
nix.settings.experimental-features = ["nix-command" "flakes"];
networking.hostName = params.hostname; # Define your hostname.
# Enable networking
networking.networkmanager.enable = true;
# Garbage collection
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# Set your time zone.
time.timeZone = "America/Sao_Paulo";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "pt_BR.UTF-8";
LC_IDENTIFICATION = "pt_BR.UTF-8";
LC_MEASUREMENT = "pt_BR.UTF-8";
LC_MONETARY = "pt_BR.UTF-8";
LC_NAME = "pt_BR.UTF-8";
LC_NUMERIC = "pt_BR.UTF-8";
LC_PAPER = "pt_BR.UTF-8";
LC_TELEPHONE = "pt_BR.UTF-8";
LC_TIME = "pt_BR.UTF-8";
};
# Remove bloat
documentation.nixos.enable = false;
# Configure console keymap
console.keyMap = "br-abnt2";
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.${params.user} = {
isNormalUser = true;
description = "Pedro Cardoso da Silva";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile.
environment.systemPackages = with pkgs; [
git
];
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
system.stateVersion = "unstable";
}