32 lines
699 B
Nix
32 lines
699 B
Nix
{ inputs, ... }:
|
|
let
|
|
username = "john";
|
|
hostname = "test-nix";
|
|
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
|
|
{
|
|
home-manager.users."${username}" = {
|
|
imports = with inputs.self.modules.homeManager; [
|
|
sops
|
|
];
|
|
shell.program = "zsh";
|
|
docker.enable = true;
|
|
ssh.matchSets = {
|
|
certs = true;
|
|
homelab = true;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|