ssh flakes and nogui
This commit is contained in:
parent
6da2d0d21f
commit
d829e61515
|
@ -10,6 +10,8 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/sdc";
|
boot.loader.grub.device = "/dev/sdc";
|
||||||
|
@ -47,8 +49,12 @@
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
# Enable the XFCE Desktop Environment.
|
# Enable the XFCE Desktop Environment.
|
||||||
services.xserver.displayManager.lightdm.enable = true;
|
# services.xserver.displayManager.lightdm.enable = true;
|
||||||
services.xserver.desktopManager.xfce.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
|
# Configure keymap in X11
|
||||||
services.xserver = {
|
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
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
@ -123,6 +126,8 @@
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
services.openssh.settings.PasswordAuthentication = false;
|
||||||
|
# services.openssh.settings.PermitRootLogin = "proh";
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
|
Loading…
Reference in a new issue