{ config, pkgs, ... }:
{ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ];
boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.proxy.default = "http://user:password@proxy:port/";
networking.networkmanager.enable = true;
time.timeZone = "Asia/Kolkata";
i18n.defaultLocale = "en_IN";
i18n.extraLocaleSettings = { LC_ADDRESS = "en_IN"; LC_IDENTIFICATION = "en_IN"; LC_MEASUREMENT = "en_IN"; LC_MONETARY = "en_IN"; LC_NAME = "en_IN"; LC_NUMERIC = "en_IN"; LC_PAPER = "en_IN"; LC_TELEPHONE = "en_IN"; LC_TIME = "en_IN"; };
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true; services.xserver.desktopManager.gnome.enable = true;
services.xserver = { layout = "us"; xkbVariant = ""; };
services.printing.enable = true;
sound.enable = true; hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; # If you want to use JACK applications, uncomment this #jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
users.users.ricky = { isNormalUser = true; description = "Ricky"; extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; [ firefox # thunderbird ]; };
services.xserver.displayManager.autoLogin.enable = true; services.xserver.displayManager.autoLogin.user = "ricky";
Workaround for GNOME autologin: NixOS/nixpkgs#103746 (comment)
systemd.services."getty@tty1".enable = false; systemd.services."autovt@tty1".enable = false;
nixpkgs.config.allowUnfree = true;
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 vscode
];
programs.mtr.enable = true; programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
services.openssh.enable = true;
(e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}