Hello everyone. Excuse me if I’m attaching photos but I can’t ssh into the machine since I can’t rebuild.
So, here is the error:
No matter what I do, I tried modifying the configuration file to make it just the bootloader and user declaration, but this error still appears.
Here is the hardware config (not touched at all, leaved it as generated during install):
And here’s the config file:
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
# EF: GRUB
boot.loader = {
efi.efiSysMountPoint = "/boot/efi";
efi.canTouchEfiVariables = true;
grub = {
enable = true;
device = "nodev";
useOSProber = true;
efiSupport = true;
};
};
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
programs.nm-applet.enable = true;
services.openssh.enable = true;
services.openssh.ports = [22];
services.openssh.settings.PasswordAuthentication = true;
services.openssh.settings.PermitRootLogin = "yes";
services.openssh.settings.AllowUsers = null;
networking.firewall.allowedTCPPorts = [22];
# Set your time zone.
time.timeZone = "Europe/Rome";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "it_IT.UTF-8";
LC_IDENTIFICATION = "it_IT.UTF-8";
LC_MEASUREMENT = "it_IT.UTF-8";
LC_MONETARY = "it_IT.UTF-8";
LC_NAME = "it_IT.UTF-8";
LC_NUMERIC = "it_IT.UTF-8";
LC_PAPER = "it_IT.UTF-8";
LC_TELEPHONE = "it_IT.UTF-8";
LC_TIME = "it_IT.UTF-8";
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "it";
variant = "";
};
# EF i3
services.xserver = {
enable = true;
displayManager.gdm.enable = true;
#displayManager.defaultSession = "none+i3";
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
dmenu
i3status
i3lock
];
};
};
# Enable i3lock otherwise no password will be accepted
programs.i3lock.enable = true;
security.polkit.enable = true;
# Configure console keymap
console.keyMap = "it";
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.edoardo = {
isNormalUser = true;
description = "edoardo";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
# KEEP RECENT GENERATIONS
nix.settings.auto-optimise-store = true;
nix.gc.automatic = true;
nix.gc.dates = "daily";
nix.gc.options = "--delete-older-than 7d";
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
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
firefox
rofi
terminator
xfce.thunar
xfce.ristretto
vscode
pywal16
lxappearance
gparted
pantheon.elementary-calculator
adementary-theme
];
# Enable font directory
fonts.fontDir.enable = true;
# Install all nerd fonts
fonts.packages = with pkgs; [
nerd-fonts.blex-mono
];
fonts.enableDefaultPackages = true;
fonts.fontconfig.defaultFonts.monospace = ["BlexMonoNerdFontMono-Regular"];
# console.font = "BlexMonoNerdFont Regular";
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# 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 = "25.05"; # Did you read the comment?
}
Does anyone can help? As I said I tried deleting 99% of the config and leave it as minimal as possibile but the error is always the same