2024-09-20 05:46:15 -04:00
|
|
|
# This is your system's configuration file (it replaces /etc/nixos/configuration.nix)
|
2024-08-30 01:17:50 -04:00
|
|
|
{inputs, outputs, lib, config, pkgs, ...}: {
|
2024-08-24 22:16:51 -04:00
|
|
|
# You can import other NixOS modules here
|
|
|
|
imports = [
|
2024-08-29 14:15:26 -04:00
|
|
|
./modules/networking.nix
|
|
|
|
./modules/gpg.nix
|
2024-08-24 22:16:51 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
# You can add overlays here
|
|
|
|
overlays = [
|
|
|
|
outputs.overlays.additions
|
2024-08-29 14:15:26 -04:00
|
|
|
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
|
2024-08-30 01:17:50 -04:00
|
|
|
time.timeZone = outputs.secrets.timeZone;
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-08-29 14:15:26 -04:00
|
|
|
# Select a terminal font
|
2024-08-24 22:16:51 -04:00
|
|
|
console = {
|
|
|
|
earlySetup = true;
|
2024-08-29 14:15:26 -04:00
|
|
|
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;
|
|
|
|
}
|