dotfiles/nixos/configuration.nix
Bart van der Braak ab338d3b15
Big refactor (#8)
* Update to 24.11 channel and add `ghostty`

* full restructure

* minor changes

* fix issues

* fixes and improvements

* Add back some old config

* working example for now
2025-01-21 22:26:22 +01:00

54 lines
No EOL
1.3 KiB
Nix

{ config, pkgs, inputs, ... }:
{
# Bootloader and EFI settings
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Hostname and networking
networking.hostName = "tongfang";
networking.networkmanager.enable = true;
# Time and locale settings
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "nl_NL.UTF-8";
LC_IDENTIFICATION = "nl_NL.UTF-8";
LC_MEASUREMENT = "nl_NL.UTF-8";
LC_MONETARY = "nl_NL.UTF-8";
LC_NAME = "nl_NL.UTF-8";
LC_NUMERIC = "nl_NL.UTF-8";
LC_PAPER = "nl_NL.UTF-8";
LC_TELEPHONE = "nl_NL.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Fonts configuration
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
jetbrains-mono
];
};
# Optimization & Garbage Collection
# Optimize Nix-Store During Rebuilds
# NOTE: Optimizes during builds - results in slower builds
nix.settings.auto-optimise-store = true;
# Purge Unused Nix-Store Entries
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# Enable Nix Flakes and experimental features
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# System state version
system.stateVersion = "24.11";
}