mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
temp enabled docker on the vps
This commit is contained in:
parent
f90ba1151a
commit
552ed08cbf
8 changed files with 37 additions and 10 deletions
|
@ -32,12 +32,14 @@
|
|||
console = {
|
||||
keyMap = "dvorak";
|
||||
};
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
htop-vim
|
||||
helix
|
||||
docker-compose
|
||||
];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
|
|
@ -6,11 +6,22 @@ in
|
|||
services.trucksimulatorbot = {
|
||||
images.enable = true;
|
||||
};
|
||||
services.nginx.virtualHosts."images.${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.images.listenPort}";
|
||||
services.nginx.virtualHosts = {
|
||||
"images.${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.images.listenPort}";
|
||||
};
|
||||
};
|
||||
"${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/invite".return = " 301 https://discord.com/api/oauth2/authorize?client_id=831052837353816066&permissions=262144&scope=bot%20applications.commands";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:9000";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
device = "/dev/disk/by-uuid/f6905cdb-c130-465a-90a3-93997023b5d3 ";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd" "noatime" ];
|
||||
options = [ "compress=zstd" "noatime" "nofail" ];
|
||||
neededForBoot = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -155,6 +155,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
intel-compute-runtime
|
||||
intel-media-driver
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# hardware utilities
|
||||
btdu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue