Files
dendritic/modules/hosts/janus.nix
2026-03-15 16:54:48 -05:00

41 lines
951 B
Nix

{ inputs, ... }:
let
username = "john";
hostname = "janus";
in
{
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
modules = with inputs.self.modules; [
nixos.lxc
nixos.sops
nixos.step-ssh-host
inputs.home-manager.nixosModules.home-manager
nixos."${username}"
nixos.zsh
nixos.docker
nixos.login-text
{
networking.hostName = hostname;
step-ssh-host.hostname = hostname;
home-manager.users."${username}" = {
imports = with inputs.self.modules.homeManager; [
sops
step-ssh-user
];
shell.program = "zsh";
docker.enable = true;
step-ssh-user = {
enable = true;
principals = [ "${hostname}" ];
};
ssh.matchSets = {
certs = true;
homelab = true;
};
};
}
];
};
}