Files
nixos-config/configuration.nix

56 lines
1.4 KiB
Nix

{ config, pkgs, inputs, ... }:
{
imports = [
./hardware-configuration.nix
./modules/system.nix
./modules/hyprland.nix
];
# Bootloader - BIOS/Legacy (for Proxmox with legacy BIOS)
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
# If you're using UEFI instead, comment out above and use:
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
# Networking
networking.hostName = "myhost"; # Change this to your hostname
networking.networkmanager.enable = true;
# Time zone
time.timeZone = "Europe/Oslo"; # Adjust to your timezone
# Locale
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "nb_NO.UTF-8";
LC_IDENTIFICATION = "nb_NO.UTF-8";
LC_MEASUREMENT = "nb_NO.UTF-8";
LC_MONETARY = "nb_NO.UTF-8";
LC_NAME = "nb_NO.UTF-8";
LC_NUMERIC = "nb_NO.UTF-8";
LC_PAPER = "nb_NO.UTF-8";
LC_TELEPHONE = "nb_NO.UTF-8";
LC_TIME = "nb_NO.UTF-8";
};
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# User account
users.users.YOURUSERNAME = {
isNormalUser = true;
description = "Your Name";
extraGroups = [ "networkmanager" "wheel" "video" "audio" ];
shell = pkgs.zsh;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# System version
system.stateVersion = "24.05"; # Don't change this
}