From 2ca9862133e578683c4229d2271cce97075ad31f Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Tue, 6 Jun 2023 17:30:46 +0200 Subject: [PATCH] fix ssh? --- flake.nix | 2 +- nixos/configuration.nix | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 72683f4..cc16fef 100644 --- a/flake.nix +++ b/flake.nix @@ -17,7 +17,7 @@ # nix-colors.url = "github:misterio77/nix-colors"; }; - outputs = { nixpkgs, ... }@inputs: { + outputs = { nixpkgs, home-manager, ... }@inputs: { # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = { diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 69ce71c..7139196 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -7,7 +7,7 @@ imports = [ # If you want to use modules from other flakes (such as nixos-hardware): inputs.hardware.nixosModules.common-cpu-amd - inputs.hardware.nixosModules.common-gpu-nvidia + # inputs.hardware.nixosModules.common-gpu-nvidia # You can also split up your configuration and import pieces of it here: # ./users.nix @@ -131,17 +131,19 @@ # Feel free to remove if you don't need it. services.openssh = { enable = true; - # Forbid root login through SSH. - permitRootLogin = "yes"; - # Use keys only. Remove if you want to SSH using password (not recommended) - passwordAuthentication = false; + settings = { + # Forbid root login through SSH. + permitRootLogin = "yes"; + # Use keys only. Remove if you want to SSH using password (not recommended) + passwordAuthentication = false; + }; }; home-manager = { extraSpecialArgs = { inherit inputs; }; users = { # Import your home-manager configuration - mans = import ../home-manager; + mans = import ../home-manager/home.nix; }; };