Files
NixConfig/hosts/darkgui-vps/Alfa/configuration.nix
T
2026-04-19 15:17:37 -03:00

72 lines
1.5 KiB
Nix

{
config,
lib,
inputs,
pkgs,
...
}:
{
imports = [
# Importa a configuração de hardware detectada
./hardware-configuration.nix
./conf/GM/imp.nix
];
## Configuração do bootloader
boot = {
#kernelPackages = pkgs.linuxPackages_latest;
#kernelPackages = pkgs.linuxPackages_cachyos;
#kernelPackages = inputs.nix-cachyos-kernel.legacyPackages.x86_64-linux.linuxPackages-cachyos-latest-lto-x86_64-v3;
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.configurationLimit = 10;
};
networking.hostName = "Alfa"; # Defina o nome da sua máquina
services = {
xserver.enable = false; # Ativar sistema gráfico X11
printing.enable = false;
};
## Definição do usuário normal
users.users.gui = {
isNormalUser = true;
description = "Gui";
extraGroups = [
"networkmanager"
"wheel"
];
packages = with pkgs; [ ];
};
## sudo-rs
security = {
sudo.enable = false;
sudo-rs = {
enable = true;
execWheelOnly = true;
wheelNeedsPassword = true;
};
};
system.stateVersion = "25.11"; # versao do nix
networking = {
networkmanager.enable = true;
interfaces.enp9s0.wakeOnLan.enable = true;
firewall.allowedTCPPorts = [ ];
firewall.allowedUDPPorts = [
];
};
services = {
displayManager.autoLogin.enable = true;
displayManager.autoLogin.user = "gui";
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
}