mirror of
https://github.com/BalrajSinghGidda/nixos-dotfiles.git
synced 2026-04-07 09:27:23 +00:00
102 lines
2.3 KiB
Nix
102 lines
2.3 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
# Bootloader configuration
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Network configuration
|
|
networking.hostName = "nixos-btw"; # Change this for your machine
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Timezone and locale
|
|
time.timeZone = "Asia/Kolkata";
|
|
|
|
# Allow unfree packages (needed for some proprietary software)
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# Bash configuration
|
|
programs.bash.completion.enable = true;
|
|
programs.bash.blesh.enable = true; # Bash Line Editor SHell
|
|
|
|
# Enable nix-ld for running unpatched binaries
|
|
programs.nix-ld = {
|
|
enable = true;
|
|
# Add common libraries that non-NixOS binaries might need
|
|
libraries = with pkgs; [
|
|
# C/C++ standard libraries
|
|
stdenv.cc.cc.lib
|
|
glibc
|
|
|
|
# Common system libraries
|
|
zlib
|
|
zstd
|
|
xz
|
|
bzip2
|
|
gzip
|
|
|
|
# SSL/TLS
|
|
openssl
|
|
|
|
# X11 and graphics
|
|
libX11
|
|
libxext
|
|
libXrender
|
|
libXtst
|
|
libXi
|
|
libglvnd
|
|
mesa
|
|
|
|
# Audio
|
|
alsa-lib
|
|
libpulseaudio
|
|
|
|
# Other common dependencies
|
|
libcap
|
|
attr
|
|
acl
|
|
fontconfig
|
|
freetype
|
|
dbus
|
|
systemd
|
|
|
|
# Development libraries
|
|
curl
|
|
expat
|
|
libxml2
|
|
|
|
# For running FHS binaries
|
|
glib
|
|
nspr
|
|
nss
|
|
util-linux
|
|
];
|
|
};
|
|
|
|
# Dell-specific kernel modules for proper hardware support
|
|
boot.kernelModules = [
|
|
"dell-wmi" # WMI driver for Dell laptops
|
|
"dell-wmi-sysman" # System management
|
|
"dell-smbios" # SMBIOS interface
|
|
"dell-wmi-descriptor" # WMI descriptor
|
|
"video" # Video driver
|
|
"sparse-keymap" # Sparse keymap support
|
|
];
|
|
|
|
# User account configuration - CHANGE 'balraj' to your username!
|
|
users.users.balraj = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "networking" ]; # wheel = sudo access
|
|
packages = with pkgs; [
|
|
tree # Directory tree visualization
|
|
];
|
|
};
|
|
|
|
# Enable Nix flakes and new nix command
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
# NixOS state version - DON'T change after initial installation
|
|
# This is the version you initially installed, not the channel you're using
|
|
system.stateVersion = "25.11";
|
|
}
|