This commit is contained in:
Mans Ziesel 2023-06-06 17:30:46 +02:00
parent f3af31e7b9
commit 2ca9862133
2 changed files with 9 additions and 7 deletions

View File

@ -17,7 +17,7 @@
# nix-colors.url = "github:misterio77/nix-colors"; # nix-colors.url = "github:misterio77/nix-colors";
}; };
outputs = { nixpkgs, ... }@inputs: { outputs = { nixpkgs, home-manager, ... }@inputs: {
# NixOS configuration entrypoint # NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname' # Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = { nixosConfigurations = {

View File

@ -7,7 +7,7 @@
imports = [ imports = [
# If you want to use modules from other flakes (such as nixos-hardware): # If you want to use modules from other flakes (such as nixos-hardware):
inputs.hardware.nixosModules.common-cpu-amd 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: # You can also split up your configuration and import pieces of it here:
# ./users.nix # ./users.nix
@ -131,17 +131,19 @@
# Feel free to remove if you don't need it. # Feel free to remove if you don't need it.
services.openssh = { services.openssh = {
enable = true; enable = true;
# Forbid root login through SSH. settings = {
permitRootLogin = "yes"; # Forbid root login through SSH.
# Use keys only. Remove if you want to SSH using password (not recommended) permitRootLogin = "yes";
passwordAuthentication = false; # Use keys only. Remove if you want to SSH using password (not recommended)
passwordAuthentication = false;
};
}; };
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { users = {
# Import your home-manager configuration # Import your home-manager configuration
mans = import ../home-manager; mans = import ../home-manager/home.nix;
}; };
}; };