forked from FaustXVI/nixos-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commons.nix
54 lines (44 loc) · 974 Bytes
/
commons.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
{ config, pkgs, lib, ... }:
{
imports = [
./acpi.nix
./network.nix
./users.nix
./system-packages.nix
];
# Internationalisation properties.
console = {
font = "Lat2-Terminus16";
keyMap = "fr";
};
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [ "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" "fr_FR@euro/ISO-8859-15" ];
};
# Time zone.
time.timeZone = "Europe/Paris";
boot.plymouth.enable = true;
services = {
envfs.enable = true;
journald.extraConfig = "SystemMaxUse=200M";
};
system = {
stateVersion = "23.11";
autoUpgrade = {
enable = false;
dates = "13:00";
};
};
services.fwupd.enable = true;
# Nix Store cleaning
nix = {
settings.auto-optimise-store = true;
gc = {
automatic = true;
options = "--delete-older-than 40d";
dates = "weekly";
};
};
nixpkgs.config.allowUnfree = true;
boot.kernel.sysctl."kernel.sysrq" = 0;
}