{ config, pkgs, ... }: { nix.settings.experimental-features = [ "nix-command" "flakes" ]; imports = [ # Include the results of the hardware scan. ./vm_hardware-configuration.nix ]; # Bootloader. boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/sda"; boot.loader.grub.useOSProber = true; networking.hostName = "nixpad"; # Define your hostname. # Enable networking networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "Europe/Berlin"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "de_DE.UTF-8"; LC_IDENTIFICATION = "de_DE.UTF-8"; LC_MEASUREMENT = "de_DE.UTF-8"; LC_MONETARY = "de_DE.UTF-8"; LC_NAME = "de_DE.UTF-8"; LC_NUMERIC = "de_DE.UTF-8"; LC_PAPER = "de_DE.UTF-8"; LC_TELEPHONE = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8"; }; # Configure keymap in X11 services.xserver = { xkb.layout = "de"; xkb.variant = ""; enable = true; videoDrivers = [ "nvidia" ]; displayManager = { defaultSession = "none+i3"; }; windowManager.i3 = { enable = true; package = pkgs.i3-gaps; extraPackages = with pkgs; [ dmenu ]; }; }; # Configure console keymap console.keyMap = "de"; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.clemens = { isNormalUser = true; description = "clemens"; initialPassword = "123456"; extraGroups = [ "networkmanager" "wheel" ]; }; # home manager home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.clemens = import ./home.nix; # Allow unfree packages nixpkgs.config.allowUnfree = true; # systemwide packages environment.systemPackages = with pkgs; [ vim wget ]; # 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.05"; # Did you read the comment? }