NixOS-Config/nixos/base.nix

83 lines
1.9 KiB
Nix
Raw Normal View History

2024-08-24 22:16:51 -04:00
# This is your system's configuration file.
# Use this to configure your system environment (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 = [
# Add overlays your own flake exports (from overlays and pkgs dir):
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 = {
# Enable flakes and new 'nix' command
experimental-features = "nix-command flakes";
# Deduplicate and optimize nix store
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;
# Force Electron to use Wayland
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.05";
}