114 lines
2.7 KiB
Nix
114 lines
2.7 KiB
Nix
{ config, pkgs, inputs, ... }: {
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
../modules/system.nix
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
networking.hostName = "nixos"; # Define your hostname.
|
||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Enable bluetooth
|
||
hardware.bluetooth.enable = true;
|
||
services.blueman.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "America/Chicago";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "en_US.UTF-8";
|
||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||
LC_MEASUREMENT = "en_US.UTF-8";
|
||
LC_MONETARY = "en_US.UTF-8";
|
||
LC_NAME = "en_US.UTF-8";
|
||
LC_NUMERIC = "en_US.UTF-8";
|
||
LC_PAPER = "en_US.UTF-8";
|
||
LC_TELEPHONE = "en_US.UTF-8"; LC_TIME = "en_US.UTF-8";
|
||
};
|
||
|
||
# Configure keymap in X11
|
||
services.xserver.xkb = {
|
||
layout = "us";
|
||
variant = "";
|
||
};
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users = {
|
||
defaultUserShell = pkgs.bash;
|
||
users.biscuit = {
|
||
isNormalUser = true;
|
||
description = "Biscuit";
|
||
extraGroups = [ "networkmanager" "wheel" ];
|
||
shell = pkgs.zsh;
|
||
packages = with pkgs; [];
|
||
};
|
||
};
|
||
|
||
# List packages installed in system profile.
|
||
environment.systemPackages = with pkgs; [
|
||
vim # Default editor
|
||
wget
|
||
git
|
||
home-manager
|
||
zsh
|
||
p7zip
|
||
gcc
|
||
];
|
||
|
||
environment.sessionVariables = {
|
||
|
||
};
|
||
|
||
# Enable the OpenSSH daemon.
|
||
services.openssh.enable = true;
|
||
|
||
# Enable non-bash shell
|
||
programs.zsh.enable = true;
|
||
|
||
### ----------------------------------------
|
||
### DESKTOP START
|
||
services.xserver.displayManager.gdm.enable = true;
|
||
|
||
fonts.packages = with pkgs; [
|
||
nerd-fonts.fira-code
|
||
];
|
||
|
||
hardware = {
|
||
# pulseaudio.enable = true;
|
||
graphics.enable = true;
|
||
nvidia.modesetting.enable = false;
|
||
};
|
||
programs.hyprland = {
|
||
enable = true;
|
||
# package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||
# portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||
xwayland.enable = true;
|
||
};
|
||
|
||
### DESKTOP END
|
||
### ----------------------------------------
|
||
|
||
# Enable experimental features
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||
#nixpkgs = {
|
||
# overlays = [
|
||
# (final: prev: {
|
||
# nvchad = inputs.nvchad4nix.packages.${pkgs.system}.nvchad;
|
||
#})
|
||
#];
|
||
#};
|
||
# System state version
|
||
system.stateVersion = "24.11"; # Ensure this matches your NixOS version
|
||
}
|
||
|