diff options
| author | Dylan <boss@tehbox.org> | 2026-04-29 23:15:45 +1200 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-04-29 23:19:15 +1200 |
| commit | f96e43f992211290e3287facc505bea0bc1a3931 (patch) | |
| tree | 02860a965002f0418847cedad2fac2e71208b443 /modules | |
| parent | da3a4174ae0a287871e36899893abe9c858ad7e5 (diff) | |
| download | nixos-configuration-master.tar.gz nixos-configuration-master.zip | |
Lots of updates
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/cgit.nix | 20 | ||||
| -rw-r--r-- | modules/nvidia.nix | 3 | ||||
| -rw-r--r-- | modules/xorg.nix | 2 |
3 files changed, 24 insertions, 1 deletions
diff --git a/modules/cgit.nix b/modules/cgit.nix index 1e62631..af4ecf2 100644 --- a/modules/cgit.nix +++ b/modules/cgit.nix @@ -74,6 +74,22 @@ in default = "git.example.com"; description = "Domain to host it on"; }; + useACMEHost = mkOption { + type = types.str; + default = ""; + description = "SSL cert to use if already aquired using security.acme.certs"; + }; + enableACME = mkEnableOption "Enable ACME with nginx"; + onlySSL = mkOption { + type = types.bool; + default = false; + description = "Only allow ssl connections"; + }; + forceSSL = mkOption { + type = types.bool; + default = true; + description = "Force ssl connections"; + }; package = mkPackageOption pkgs "cgit" { }; extraConfig = mkOption { type = types.str; @@ -132,6 +148,10 @@ fastcgi_param HTTP_HOST $server_name; fastcgi_pass unix:${config.services.fcgiwrap.instances.cgit.socket.address}; ''; }; + enableACME = cfg.enableACME; + forceSSL = cfg.forceSSL; + } // lib.optionalAttrs (cfg.useACMEHost != "") { + useACMEHost = "${cfg.useACMEHost}"; }; }; } diff --git a/modules/nvidia.nix b/modules/nvidia.nix index e8db8b7..d315238 100644 --- a/modules/nvidia.nix +++ b/modules/nvidia.nix @@ -17,9 +17,12 @@ in nixpkgs.config.allowUnfree = true; hardware.graphics.enable = true; hardware.nvidia.modesetting.enable = true; + # hardware.nvidia.dynamicBoost.enable = true; hardware.nvidia.open = true; hardware.nvidia.prime = { + # sync.enable = true; offload.enable = true; + # offload.offloadCmdMainProgram = "prime-run"; nvidiaBusId = "PCI:1:0:0"; intelBusId = "PCI:5:0:0"; diff --git a/modules/xorg.nix b/modules/xorg.nix index dbf2a77..e196e3d 100644 --- a/modules/xorg.nix +++ b/modules/xorg.nix @@ -33,7 +33,7 @@ windowManager.i3 = { enable = true; - package = pkgs.i3-gaps; + package = pkgs.i3; }; windowManager.YATwm = { |
