NixOS-Config/nixos/base.nix

73 lines
1.5 KiB
Nix
Raw Normal View History

2024-09-20 05:46:15 -04:00
# This is your system's configuration file (it replaces /etc/nixos/configuration.nix)
{inputs, outputs, lib, config, pkgs, ...}: {
2024-08-24 22:16:51 -04:00
# You can import other NixOS modules here
imports = [
./modules/networking.nix
./modules/gpg.nix
2024-08-24 22:16:51 -04:00
];
nixpkgs = {
# You can add overlays here
overlays = [
outputs.overlays.additions
outputs.overlays.selfsuper
outputs.overlays.finalprev
2024-08-24 22:16:51 -04:00
outputs.overlays.unstable-packages
2024-08-27 16:54:58 -04:00
inputs.nix-minecraft.overlay
2024-08-24 22:16:51 -04:00
];
# Configure your nixpkgs instance
config = {
allowUnfree = true;
};
};
# Enable flakes and garbage collection
nix = {
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
2024-09-03 01:25:38 -04:00
options = "--delete-older-than 1w";
2024-08-24 22:16:51 -04:00
};
};
# Set timezone
time.timeZone = outputs.secrets.timeZone;
2024-08-24 22:16:51 -04:00
# Select a terminal font
2024-08-24 22:16:51 -04:00
console = {
earlySetup = true;
font = "${pkgs.terminus_font}/share/consolefonts/ter-u22n.psf.gz";
packages = with pkgs; [ terminus_font ];
keyMap = "us";
2024-08-24 22:16:51 -04:00
};
# Enable git
programs.git = {
enable = true;
lfs.enable = true;
};
# Basic firewall settings
networking.nftables.enable = true;
# Enable the ZSH shell
programs.zsh.enable = true;
# Disable Nano
programs.nano.enable = false;
# Disable the HTML documentation link
documentation = {
nixos.enable = false;
info.enable = false;
};
# Allow binary firmware
hardware.enableRedistributableFirmware = true;
}