Files
dendritic/modules/hosts/test-nix.nix
John Lancaster d60a52edda prune
2026-03-14 11:38:51 -05:00

40 lines
999 B
Nix

{ inputs, ... }:
let
username = "john";
hostname = "test-nix";
in
{
flake.modules.nixos."${hostname}" = { pkgs, lib, ...}: {
networking.hostName = "${hostname}";
services.openssh = {
enable = true;
# require public key authentication for better security
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
};
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
modules = with inputs.self.modules; [
inputs.home-manager.nixosModules.home-manager
nixos."${username}"
nixos.zsh
nixos.docker
nixos.step-client
{
home-manager.users."${username}" = {
# imports = with inputs.self.modules.homeManager; [
# step-client
# ];
shell.program = "zsh";
docker.enable = true;
ssh.matchSets = {
certs = true;
homelab = true;
};
};
}
];
};
}