diff --git a/configuration.nix b/configuration.nix index 659301a..bf219ce 100644 --- a/configuration.nix +++ b/configuration.nix @@ -10,6 +10,8 @@ ./hardware-configuration.nix ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # Bootloader. boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/sdc"; @@ -47,8 +49,12 @@ services.xserver.enable = true; # Enable the XFCE Desktop Environment. - services.xserver.displayManager.lightdm.enable = true; - services.xserver.desktopManager.xfce.enable = true; + # services.xserver.displayManager.lightdm.enable = true; + # services.xserver.desktopManager.xfce.enable = true; + + # Enable automatic login for the user. + # services.xserver.displayManager.autoLogin.enable = true; + # services.xserver.displayManager.autoLogin.user = "sondell"; # Configure keymap in X11 services.xserver = { @@ -93,9 +99,6 @@ ]; }; - # Enable automatic login for the user. - services.xserver.displayManager.autoLogin.enable = true; - services.xserver.displayManager.autoLogin.user = "sondell"; # Allow unfree packages nixpkgs.config.allowUnfree = true; @@ -123,6 +126,8 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + services.openssh.settings.PasswordAuthentication = false; + # services.openssh.settings.PermitRootLogin = "proh"; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ];