46 lines
987 B
Nix
46 lines
987 B
Nix
{
|
|
self,
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}: {
|
|
# imports = [ inputs.nix-gaming.nixosModules.default ];
|
|
nix = {
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
experimental-features = ["nix-command" "flakes"];
|
|
substituters = ["https://nix-gaming.cachix.org"];
|
|
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
|
|
};
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
};
|
|
nixpkgs = {
|
|
overlays = [
|
|
inputs.nur.overlays.default
|
|
];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
git
|
|
ddcutil
|
|
];
|
|
|
|
# For ddcutil brightness control
|
|
boot.kernelModules = ["i2c-dev"];
|
|
services.udev.extraRules = ''
|
|
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
|
|
'';
|
|
|
|
time.timeZone = "Europe/Madrid";
|
|
console.keyMap = "es";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
nixpkgs.config.allowUnfree = true;
|
|
system.stateVersion = "24.05";
|
|
}
|