temp enabled docker on the vps

This commit is contained in:
Rouven Seifert 2023-05-26 14:50:29 +02:00
parent f90ba1151a
commit 552ed08cbf
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
8 changed files with 37 additions and 10 deletions

View file

@ -75,11 +75,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1684959562, "lastModified": 1685105343,
"narHash": "sha256-Lmdq2O1JtIu7JPce852a7oChjm/zmkLg/JUAT3Tmh6I=", "narHash": "sha256-ypXKGzTQWJqbHHrPnSHLo4b2vNtfOFyh6sDdNPi7/WQ=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "a2bb95fc60c717c873eff273f5ee035e622565d0", "rev": "5f4659afef5856c509d53957e62b7f6c38d39f41",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -32,12 +32,14 @@
console = { console = {
keyMap = "dvorak"; keyMap = "dvorak";
}; };
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
wget wget
htop-vim htop-vim
helix helix
docker-compose
]; ];
programs.git = { programs.git = {
enable = true; enable = true;

View file

@ -6,11 +6,22 @@ in
services.trucksimulatorbot = { services.trucksimulatorbot = {
images.enable = true; images.enable = true;
}; };
services.nginx.virtualHosts."images.${domain}" = { services.nginx.virtualHosts = {
enableACME = true; "images.${domain}" = {
forceSSL = true; enableACME = true;
locations."/" = { forceSSL = true;
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.images.listenPort}"; 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";
};
}; };
}; };
} }

View file

@ -3,7 +3,7 @@
{ {
device = "/dev/disk/by-uuid/f6905cdb-c130-465a-90a3-93997023b5d3 "; device = "/dev/disk/by-uuid/f6905cdb-c130-465a-90a3-93997023b5d3 ";
fsType = "btrfs"; fsType = "btrfs";
options = [ "compress=zstd" "noatime" ]; options = [ "compress=zstd" "noatime" "nofail" ];
neededForBoot = false; neededForBoot = false;
}; };

View file

@ -155,6 +155,11 @@
}; };
}; };
hardware.opengl.extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# hardware utilities # hardware utilities
btdu btdu

View file

@ -7,6 +7,7 @@
./gpg ./gpg
./helix ./helix
./hyprland ./hyprland
./mpv
./qutebrowser ./qutebrowser
./sops ./sops
./spotify ./spotify

View file

@ -0,0 +1,9 @@
{ ... }:
{
programs.mpv = {
enable = true;
config = {
hwdec = "auto";
};
};
}

View file

@ -17,7 +17,6 @@
# graphics # graphics
evince # pdf viewer evince # pdf viewer
gimp gimp
mpv # best video player out there
ffmpeg ffmpeg
# sound # sound