summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/cloud/bkk/nginx.nix8
-rw-r--r--hosts/cloud/sortug/nginx.nix8
-rw-r--r--hosts/local/master/configuration.nix11
-rw-r--r--hosts/local/nvidia.nix26
-rw-r--r--hosts/pkgs.nix1
5 files changed, 41 insertions, 13 deletions
diff --git a/hosts/cloud/bkk/nginx.nix b/hosts/cloud/bkk/nginx.nix
index 03c13ce..ea6b785 100644
--- a/hosts/cloud/bkk/nginx.nix
+++ b/hosts/cloud/bkk/nginx.nix
@@ -33,6 +33,14 @@
proxyWebsockets = true; # needed if you need to use WebSocket
};
};
+ virtualHosts."kino.urbit.men" = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:8095";
+ proxyWebsockets = true; # needed if you need to use WebSocket
+ };
+ };
virtualHosts."m.urbit.men" = {
enableACME = true;
forceSSL = true;
diff --git a/hosts/cloud/sortug/nginx.nix b/hosts/cloud/sortug/nginx.nix
index 655b44c..b075c22 100644
--- a/hosts/cloud/sortug/nginx.nix
+++ b/hosts/cloud/sortug/nginx.nix
@@ -31,6 +31,14 @@
proxyWebsockets = true; # needed if you need to use WebSocket
};
};
+ virtualHosts."kino.sortug.com" = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:8095";
+ proxyWebsockets = true; # needed if you need to use WebSocket
+ };
+ };
virtualHosts."u.sortug.com" = {
enableACME = true;
forceSSL = true;
diff --git a/hosts/local/master/configuration.nix b/hosts/local/master/configuration.nix
index a0f8475..712d15c 100644
--- a/hosts/local/master/configuration.nix
+++ b/hosts/local/master/configuration.nix
@@ -6,18 +6,19 @@
# Include the results of the hardware scan.
../../base.nix
../../linux.nix
- ../../unfree.nix
+ # ../../unfree.nix
#../../android.nix
- ../i3.nix
+ # ../i3.nix
# ../gnome.nix
# ../wayland.nix
../nvidia.nix
- ./keyboard.nix
+ ./keyboard.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
+ boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["intel_pstate=active"];
# boot.supportedFilesystems = ["ntfs"];
services.fprintd.enable = true;
@@ -44,8 +45,8 @@
system.stateVersion = "23.11"; # Did you read the comment?
#debugging segfaults
- powerManagement.cpufreq.max = 4000000;
- powerManagement.cpufreq.min = 800000;
+ # powerManagement.cpufreq.max = 4000000;
+ # powerManagement.cpufreq.min = 800000;
# Define the systemd service
# systemd.services.my-custom-script = {
diff --git a/hosts/local/nvidia.nix b/hosts/local/nvidia.nix
index 08e5d2b..f2d4b46 100644
--- a/hosts/local/nvidia.nix
+++ b/hosts/local/nvidia.nix
@@ -1,20 +1,30 @@
{config, pkgs, ...}: {
boot.kernelModules = ["nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm"];
# boot.kernelPackages = lib.mkForce unfreePkgs.linuxKernel.packages.linux_xanmod_latest;
- boot.kernelParams = ["video=HDMI-A-1:1920x1080"];
- hardware.graphics= {
+ # boot.kernelParams = ["video=HDMI-A-1:1920x1080"];
+ # hardware.graphics= {
# package = (pkgs.mesa.override { galliumDrivers = [ "i915" "swrast" ]; }).drivers;
- enable = true;
- };
+ # enable = true;
+ # };
services.xserver = {
videoDrivers = ["nvidia"];
};
-
+ # environment.systemPackages = with pkgs;[
+ # libva-utils
+ # nvidia-vaapi-driver
+ # pciutils
+ # vdpauinfo
+ # (blender.override {
+ # cudaSupport = true;
+ # })
+ # ];
hardware.nvidia = {
- package = config.boot.kernelPackages.nvidiaPackages.stable;
+ package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
- powerManagement.enable = true;
- open = true;
+ powerManagement.enable = false;
+ powerManagement.finegrained = false;
+ # nvidiaSettings = true;
+ open = false;
};
}
diff --git a/hosts/pkgs.nix b/hosts/pkgs.nix
index b5b0b07..9b4e38e 100644
--- a/hosts/pkgs.nix
+++ b/hosts/pkgs.nix
@@ -40,6 +40,7 @@
pigz
rclone
gparted
+ autossh
#hardware problems
lm_sensors
linuxKernel.packages.linux_latest_libre.cpupower