diff --git a/configuration.nix b/configuration.nix deleted file mode 120000 index faf36fd..0000000 --- a/configuration.nix +++ /dev/null @@ -1 +0,0 @@ -/etc/nixos/configuration.nix \ No newline at end of file diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..1fa2d02 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,40 @@ +{ config, lib, inputs, pkgs, ... }: +{ + imports = + [ # Importa a configuração de hardware detectada + ./hardware-configuration.nix + ./imp.nix + ]; + + ## Configuração do bootloader + boot.loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + systemd-boot.configurationLimit = 10; + }; + + boot.kernelPackages = pkgs.linuxPackages_cachyos; # Kernel customizado + #boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_cachyos-gcc; + #boot.kernelPackages = pkgs.linuxPackages_latest; + + networking.hostName = "Alfa"; # Defina o nome da sua máquina + + services = { + xserver.enable = false; # Ativar sistema gráfico X11 + displayManager.autoLogin.enable = true; + displayManager.autoLogin.user = "gui"; + }; + + ## Definição do usuário normal + users.users.gui = { + isNormalUser = true; + description = "Gui"; + extraGroups = [ "networkmanager" "wheel"]; + packages = with pkgs; [ + kdePackages.kate + kdePackages.kcalc + ]; + }; + + system.stateVersion = "25.05"; # versao do nix +}