31 lines
739 B
Nix
31 lines
739 B
Nix
{ inputs, ... }:
|
|
let
|
|
hostname = "janus";
|
|
username ="john";
|
|
in
|
|
{
|
|
flake.modules.nixos."${hostname}" = { pkgs, ... }: {
|
|
imports = [
|
|
inputs.self.modules.nixos.lxc
|
|
inputs.home-manager.nixosModules.home-manager
|
|
inputs.self.modules.nixos."${username}"
|
|
# inputs.self.modules.nixos.step-ca
|
|
inputs.self.modules.nixos.docker
|
|
];
|
|
home-manager.users."${username}" = {
|
|
imports = with inputs.self.modules.homeManager; [
|
|
];
|
|
docker.enable = true;
|
|
ssh.matchSets = {
|
|
certs = true;
|
|
homelab = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
inputs.self.modules.nixos."${hostname}"
|
|
];
|
|
};
|
|
} |