| 17 Jul 2022 |
rendakuenthusiast | I'm using a kinda-complicated helper function to actually create the block | 04:48:37 |
rendakuenthusiast | nginx configs have a lot of options | 04:48:45 |
rendakuenthusiast | but I'm still just deleting the whole thing | 04:48:50 |
Winter (she/her) | hmm
can you share that function? | 04:49:02 |
Winter (she/her) | and does the key name have any implication into its result? | 04:49:28 |
Winter (she/her) | * (null) | 04:49:35 |
Winter (she/her) | * (null) | 04:49:41 |
rendakuenthusiast | vhostLocal = { localPort, addlLocationConfig ? {} }: {
forceSSL = true;
enableACME = true;
listen = [ {addr = "localhost"; port = customPorts.nginxHttp; ssl = false; }
{ addr = "localhost"; port = customPorts.nginxHttps; ssl = true; }
];
locations = {
"/" = {
proxyPass = "http://localhost:${(toString localPort)}";
extraConfig = ''
proxy_set_header Host $host;
'';
};
} // addlLocationConfig;
};
| 04:50:16 |
rendakuenthusiast | and then the actual line is "mydomain.example.com" = vHostLocal { localPort = 3333; }; | 04:50:45 |
rendakuenthusiast | so deleting that line causes the segfault | 04:51:12 |
rendakuenthusiast | if I replace the function with that block of code, it builds | 04:52:56 |
rendakuenthusiast | but then if I delete teh whole thing it segfaults again | 04:53:02 |
rendakuenthusiast | hm, it seems like if I delete teh forceSSL and enableACME lines simultaneously, then some kind of error happens | 04:55:09 |
rendakuenthusiast | and then if I delete the enableACME line, I get teh same error | 04:55:51 |
rendakuenthusiast | the segfault | 04:55:54 |
Winter (she/her) | In reply to @rendakuenthusiast:imperishable.name so deleting that line causes the segfault huh, not having my domain... as a key makes it segfault? | 04:55:56 |
Winter (she/her) | oh huh what
what Nixpkgs revision and Nix version are you using? | 04:56:10 |
rendakuenthusiast | also setting it to false | 04:56:14 |
rendakuenthusiast | I'm never sure quite how to figure that out | 04:56:31 |
rendakuenthusiast | in the hive file I have nixpkgs = <nixpkgs>. so that says, use the nixpkgs version on my local system, right? | 04:56:49 |
rendakuenthusiast | but I'm not sure how ot figure out what I have running locally | 04:57:00 |
Winter (she/her) | In reply to @rendakuenthusiast:imperishable.name in the hive file I have nixpkgs = <nixpkgs>. so that says, use the nixpkgs version on my local system, right? correct | 04:57:07 |
Winter (she/her) | In reply to @rendakuenthusiast:imperishable.name also setting it to false wait so enableACME = true -> no segfault, but false -> segfault?? | 04:57:42 |
rendakuenthusiast | I used to have a complicated thing there that I think was pinning the version of nixpkgs deployed to the remote host to a specific git commit, but I had to get rid of that | 04:57:43 |
rendakuenthusiast | In reply to @winterqt:nixos.dev wait so enableACME = true -> no segfault, but false -> segfault?? yes | 04:57:56 |
Winter (she/her) | what the hell | 04:58:00 |
Winter (she/her) | can younix-shell -p nix-info --run "nix-info -m" and post the output? | 04:59:17 |
Winter (she/her) | * can you nix-shell -p nix-info --run "nix-info -m" and post the output? | 04:59:40 |
Winter (she/her) | * can you nix-shell -p nix-info --run "nix-info -m" and post the output? | 04:59:52 |
rendakuenthusiast | - system: `"x86_64-linux"`
- host os: `Linux 5.18.11-arch1-1, Arch Linux, noversion, rolling`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.10.1`
- channels(root): `""`
- channels(myusername): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/myusername/channels/nixpkgs`
| 05:00:41 |