/dev/sdd for root for nixos@Felia

nix-components
pegasust 2022-11-14 15:26:42 -07:00
parent 3dd94f71b5
commit 876ee8ba6b
3 changed files with 29 additions and 4 deletions

View File

@ -49,6 +49,7 @@ with lib;
pkgs.inetutils pkgs.inetutils
pkgs.mtr pkgs.mtr
pkgs.sysstat pkgs.sysstat
pkgs.mosh
]; ];
} }

View File

@ -14,7 +14,6 @@
]; ];
specialArgs = { specialArgs = {
hostname = "Felia"; hostname = "Felia";
enableSSH = false;
}; };
}; };
# Generic machine # Generic machine
@ -38,7 +37,32 @@
boot.loader.grub.version = 2; boot.loader.grub.version = 2;
services.openssh = { services.openssh = {
permitRootLogin = "no"; permitRootLogin = "no";
enable = enableSSH; enable = true;
};
services.gitea = {
enable = true;
stateDir = "/gitea";
rootUrl = "https://git.pegasust.com";
settings = {
repository = {
"ENABLE_PUSH_CREATE_USER" = true;
"ENABLE_PUSH_CREATE_ORG" = true;
};
};
};
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."git.pegasust.com" = {
# Gitea hostname
sslCertificate = "/var/lib/acme/git.pegasust.com/fullchain.pem";
sslCertificateKey = "/var/lib/acme/git.pegasust.com/key.pem";
forceSSL = true; # Runs on port 80 and 443
locations."/".proxyPass = "http://localhost:3000/"; # Proxy to Gitea
};
}; };
}; };
}; };
@ -62,7 +86,7 @@
boot.loader.grub.version = 2; boot.loader.grub.version = 2;
services.openssh = { services.openssh = {
permitRootLogin = "no"; permitRootLogin = "no";
enable = enableSSH; enable = true;
}; };
}; };
}; };

View File

@ -13,7 +13,7 @@
fileSystems."/" = fileSystems."/" =
{ {
device = "/dev/sde"; device = "/dev/sdd";
fsType = "ext4"; fsType = "ext4";
}; };