init by ai
This commit is contained in:
44
nixos/default.nix
Normal file
44
nixos/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ config, lib, pkgs, pkgs-unstable, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./modules/system.nix
|
||||
./modules/development.nix
|
||||
./modules/shell.nix
|
||||
];
|
||||
|
||||
# ============================================
|
||||
# Shared NixOS Configuration
|
||||
# ============================================
|
||||
|
||||
# System packages available to all users
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
curl
|
||||
wget
|
||||
vim
|
||||
htop
|
||||
];
|
||||
|
||||
# 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 = "UTC";
|
||||
|
||||
# Networking basics
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
networking.networkmanager.enable = lib.mkDefault false;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user