nixcfg/system/default.nix

74 lines
1.7 KiB
Nix
Raw Normal View History

2024-02-29 17:06:55 -05:00
{ config, pkgs, ... }:
{
2024-03-01 23:55:26 -05:00
imports =
2024-03-03 21:43:51 -05:00
[
2024-03-13 13:28:54 -04:00
./network.nix
./sound.nix
2024-03-01 23:55:26 -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-11 18:37:01 -04:00
# Add support for logitech unifying receivers.
hardware.logitech.wireless.enable = true;
hardware.logitech.wireless.enableGraphical = true;
# Add support for configuring QMK keyboards with Via.
hardware.keyboard.qmk.enable = true;
2024-02-29 17:06:55 -05:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2024-03-06 18:14:24 -05:00
environment.systemPackages = with pkgs; [
eza
];
system.autoUpgrade = {
enable = true;
2024-03-12 21:52:11 -04:00
allowReboot = true;
2024-03-02 09:56:10 -05:00
flake = "github:alyraffauf/nixcfg";
dates = "daily";
2024-03-12 21:52:11 -04:00
operation = "boot";
rebootWindow = {
lower = "01:00";
upper = "05:00";
}
};
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 = "weekly";
2024-02-29 17:06:55 -05:00
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" ];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2024-02-29 17:06:55 -05:00
}