2024-02-29 17:06:55 -05:00
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2024-03-01 21:54:34 -05:00
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
|
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
|
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
|
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
|
|
|
LC_NAME = "en_US.UTF-8";
|
|
|
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
|
|
|
LC_PAPER = "en_US.UTF-8";
|
|
|
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
|
|
|
LC_TIME = "en_US.UTF-8";
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-01 21:38:19 -05:00
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.aly = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
description = "Aly Raffauf";
|
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-29 17:06:55 -05:00
|
|
|
|
# Allow unfree packages
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
2024-03-01 12:13:33 -05:00
|
|
|
|
system.autoUpgrade = {
|
|
|
|
|
enable = true;
|
|
|
|
|
allowReboot = false;
|
|
|
|
|
flake = "github:alychace/nixcfg";
|
|
|
|
|
dates = "daily";
|
|
|
|
|
operation = "boot";
|
|
|
|
|
};
|
2024-02-29 17:06:55 -05:00
|
|
|
|
|
2024-02-29 18:10:52 -05:00
|
|
|
|
# Delete generations older than 7 days.
|
2024-02-29 17:06:55 -05:00
|
|
|
|
nix.gc = {
|
|
|
|
|
automatic = true;
|
|
|
|
|
dates = "daily";
|
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Automatically optimize the Nix store in the background.
|
|
|
|
|
nix.settings.auto-optimise-store = true;
|
|
|
|
|
|
|
|
|
|
# Run GC when there is less than 100MiB left.
|
|
|
|
|
nix.extraOptions = ''
|
|
|
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
|
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
}
|