{ config, pkgs, inputs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; ############################## ### Networking ### ############################## services.xserver.videoDrivers = ["nvidia"]; hardware = { graphics.enable = true; nvidia = { modesetting.enable = true; powerManagement = { enable = false; finegrained = false; }; open = true; nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.latest; }; }; ############################## ### Networking ### ############################## networking.hostName = "nemesis"; # Define your hostname. networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "Asia/Singapore"; # Select internationalisation properties. i18n.defaultLocale = "en_SG.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "en_SG.UTF-8"; LC_IDENTIFICATION = "en_SG.UTF-8"; LC_MEASUREMENT = "en_SG.UTF-8"; LC_MONETARY = "en_SG.UTF-8"; LC_NAME = "en_SG.UTF-8"; LC_NUMERIC = "en_SG.UTF-8"; LC_PAPER = "en_SG.UTF-8"; LC_TELEPHONE = "en_SG.UTF-8"; LC_TIME = "en_SG.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.users.rafiq = { isNormalUser = true; description = "Mohammad Rafiq"; extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; []; }; # Allow unfree packages nixpkgs.config.allowUnfree = true; environment.variables.EDITOR = "vim"; # List packages installed in system profile. To search, run: # $ nix search wget nix.settings.experimental-features = [ "nix-command" "flakes" ]; environment.systemPackages = with pkgs; [ vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget git ]; # List services that you want to enable: # Enable the OpenSSH daemon. services.openssh = { enable = true; }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.11"; # Did you read the comment? }