From 75e393dd024667c33122ca21d07258d41eb4df83 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 11 Nov 2023 17:52:36 +0800 Subject: [PATCH] templates/sample-nixos-template: update desktop template --- .../hosts/desktop/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/templates/sample-nixos-template/hosts/desktop/default.nix b/templates/sample-nixos-template/hosts/desktop/default.nix index c9676c2c..f603f07e 100644 --- a/templates/sample-nixos-template/hosts/desktop/default.nix +++ b/templates/sample-nixos-template/hosts/desktop/default.nix @@ -8,4 +8,20 @@ boot.loader.efi.canTouchEfiVariables = true; system.stateVersion = "23.05"; + + services.openssh = { + enable = true; + settings.PermitRootLogin = "yes"; + }; + + users.users.nixos = { + isNormalUser = true; + extraGroups = [ "wheel" "networkmanager" "audio" ]; + initialHashedPassword = ""; + }; + + nix = { + package = pkgs.nixUnstable; + settings.experimental-features = [ "nix-command" "flakes" ]; + }; }