Files
nix-los/nixos/default.nix
2026-04-07 17:08:12 +02:00

48 lines
989 B
Nix

{ config, lib, pkgs, pkgs-unstable, ... }:
{
imports = [
./modules/system.nix
./modules/development.nix
./modules/shell.nix
./modules/yubikey.nix
];
# ============================================
# Shared NixOS Configuration
# ============================================
# System packages available to all users
environment.systemPackages = with pkgs; [
git
curl
vim
htop
home-manager
];
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Nix settings
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
# System-wide locale
i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "Europe/Berlin";
# Networking basics
networking.useDHCP = lib.mkDefault true;
networking.networkmanager.enable = lib.mkDefault false;
}