diff --git a/nixos/configuration.nix b/nixos/configuration.nix index f7c1bff..c3d2aae 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -49,7 +49,7 @@ in systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ]; fileSystems."/persist".neededForBoot = true; - # set up DNS with nginx + # Set up https certs via cloudflare/acme security.acme = { acceptTerms = true; defaults = { @@ -62,6 +62,7 @@ in }; }; + # Setup vhosts via nginx services.nginx = { enable = true; diff --git a/nixos/flake.nix b/nixos/flake.nix index f81932c..9b4fbbd 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -17,9 +17,11 @@ url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; - # IDK if this is right, might need to import each service, hope not + # This is a path to the services I've declared. + # It just happens to be stored in the same repository (relative), + # but could well be a separate repository services = { - url = "./services/"; + url = "../../services/"; }; }; @@ -48,7 +50,8 @@ ./disk-config.nix disko.nixosModules.disko sops-nix.nixosModules.sops - (quasiSecrets.nixosModules) + quasiSecrets.nixosModules.ipAddrs + quasiSecrets.nixosModules.services home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true;