janus module cleanup
This commit is contained in:
@@ -10,15 +10,13 @@ in
|
||||
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = with inputs.self.modules; [
|
||||
nixos.lxc
|
||||
nixos.mysops
|
||||
# nixos.ssh-certs
|
||||
nixos.ssh-new
|
||||
nixos.step-client
|
||||
nixos.step-ca
|
||||
nixos.login-text
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
nixos."${username}"
|
||||
nixos.docker
|
||||
nixos.login-text
|
||||
nixos.ssh-new
|
||||
nixos.mysops
|
||||
nixos.step-ca # Runs the step-ca server
|
||||
nixos.step-client # Uses the step-ca server as a client
|
||||
nixos.mtls
|
||||
({ config, lib, pkgs, ... }: {
|
||||
networking.hostName = hostname;
|
||||
@@ -52,10 +50,7 @@ in
|
||||
mtls = {
|
||||
enable = true;
|
||||
subject = hostname;
|
||||
san = [
|
||||
"${hostname}.john-stream.com"
|
||||
ipv4
|
||||
];
|
||||
san = names;
|
||||
bootstrap = {
|
||||
enable = true;
|
||||
after = [ "sops-nix.service" "step-ca.service" ];
|
||||
@@ -63,20 +58,6 @@ in
|
||||
provisionerPasswordFile = config.sops.secrets."janus/admin_jwk".path;
|
||||
};
|
||||
};
|
||||
|
||||
users.users."${username}" = {
|
||||
shell = lib.mkForce (
|
||||
lib.getExe inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.jsl-zsh
|
||||
);
|
||||
};
|
||||
|
||||
home-manager.users."${username}" = {
|
||||
imports = with inputs.self.modules.homeManager; [
|
||||
mysops
|
||||
step-client
|
||||
];
|
||||
docker.enable = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user