Point to correct configuration file.

main
Joshua Potter 2023-12-12 08:18:35 -07:00
parent 2a8b35c82e
commit 4149882ce8
3 changed files with 15 additions and 9 deletions

View File

@ -36,10 +36,12 @@ with lib;
autoResize = true;
fsType = "ext4";
};
swapDevices = [
# Configured in `make-disk-image.nix`.
{ device = "/dev/disk/by-label/swap"; }
];
boot = {
growPartition = true;
kernelParams = [ "console=ttyS0" "panic=1" "boot.panic_on_fail" ];
@ -51,11 +53,15 @@ with lib;
grub.configurationLimit = 0;
};
};
services.openssh = {
enable = mkDefault true;
settings.PasswordAuthentication = mkDefault false;
services = {
do-agent.enable = mkDefault true;
openssh = {
enable = mkDefault true;
settings.PasswordAuthentication = mkDefault false;
};
};
services.do-agent.enable = mkDefault true;
networking = {
hostName = mkDefault ""; # use Digital Ocean metadata server
};

View File

@ -1,4 +1,4 @@
{ system, stateVersion, sops-nix, modulesPath, pkgs, lib, ... }:
{ system, stateVersion, sops-nix, pkgs, lib, ... }:
let
boardwise = builtins.getFlake
"github:boardwise-gg/website/c605a09c56234b2c2c0e4593da8f3b798723a5d7";
@ -7,7 +7,7 @@ let
in
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
(modulesPath + "/virtualisation/digital-ocean-config.nix")
../../digital-ocean/configuration.nix
sops-nix.nixosModules.sops
];
@ -65,7 +65,7 @@ in
enable = true;
virtualHosts = {
"www.boardwise.gg" = {
# forceSSL = true;
forceSSL = true;
enableACME = true;
serverAliases = [ "boardwise.gg" ];
locations."/" = {

View File

@ -1,7 +1,7 @@
{ system, stateVersion, home-manager, modulesPath, lib, ... }:
{ system, stateVersion, home-manager, lib, ... }:
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
(modulesPath + "/virtualisation/digital-ocean-config.nix")
../../digital-ocean/configuration.nix
home-manager.nixosModules.home-manager
];