abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorPatrick2026-02-14 12:46:11 +0100
committerPatrick2026-02-14 12:46:11 +0100
commit995082661f90769a4fb307412380b1ab47b934b4 (patch)
tree43cbf2cd204fb9875593109108674ddcc654e014
parent93bf636ade246f83b491eafe2e81388d186c412a (diff)
downloadps-cgit-995082661f90769a4fb307412380b1ab47b934b4.tar.gz
ps-cgit-995082661f90769a4fb307412380b1ab47b934b4.zip
update flake
-rw-r--r--common.nix4
-rw-r--r--flake.nix3
2 files changed, 5 insertions, 2 deletions
diff --git a/common.nix b/common.nix
index 9cc41e6..8b3fced 100644
--- a/common.nix
+++ b/common.nix
@@ -43,6 +43,10 @@ stdenv.mkDerivation {
separateDebugInfo = true;
+ dontPatchELF = true;
+ dontStrip = true;
+ dontShrinkRpath = true;
+
nativeBuildInputs = [
pkg-config
asciidoc
diff --git a/flake.nix b/flake.nix
index 61cef2c..46e3eb4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -57,7 +57,7 @@
environment.systemPackages = with pkgs; [ gdb file ];
networking.useDHCP = false;
- networking.firewall.allowedTCPPorts = [ 22 80 ];
+ networking.firewall.allowedTCPPorts = [ 22 80 1234 ];
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [ "${builtins.readFile "/home/ps/.ssh/id_ed25519.pub"}" ];
@@ -126,7 +126,6 @@
scan-path=/srv/git
''}
env SCRIPT_FILENAME ${pkgs.writeShellScript "debug-cgi.cgi" ''
- #!/usr/bin/env sh
${pkgs.gdb}/bin/gdbserver :1234 ${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/cgit/cgit.cgi
''}
}