| 5 Mar 2026 |
guiniol | BTW, to pin version, I created new nixpkgs instances pointing to revisions found using https://www.nixhub.io/packages/unifi. AFAICT, it is working because I can see the versions changing in the systemd daemon files etc... | 20:41:38 |
Dreamgineer | Generic answer here: I've locked myself out of my system many times, if rolling back doesn't fix it(in case of /etc/shadow issue), your best bet is probably grabbing a live USB and resetting the password there. | 20:43:12 |
Dreamgineer | How did you install unifi exactly? | 20:44:03 |
guiniol | In reply to @dreamgineer:matrix.org Generic answer here: I've locked myself out of my system many times, if rolling back doesn't fix it(in case of /etc/shadow issue), your best bet is probably grabbing a live USB and resetting the password there. I can log into the system, but not into the unifi controller website | 20:44:13 |
Dreamgineer | oh so just the website? | 20:44:22 |
guiniol | In reply to @dreamgineer:matrix.org How did you install unifi exactly? Using services.unifi | 20:44:47 |
guiniol | In reply to @dreamgineer:matrix.org oh so just the website? Yes. Local self hosted controller, with a local account (there is an option to use their cloud account but I do not want to do that) | 20:45:31 |
Dreamgineer | There's an option to change JRE package, services.unifi.jrePackage. Have you tried that? | 20:46:57 |
guiniol | In reply to @dreamgineer:matrix.org There's an option to change JRE package, services.unifi.jrePackage. Have you tried that? Yes. Is there a recommended pastebin website? It'd be easier if I shared that part of my config | 20:48:25 |
Dreamgineer | you can paste it here as codeblock if it isn't too big. | 20:48:50 |
guiniol | here goes my flake.nix (at least the relevant parts): | 20:54:19 |
guiniol | inputs = {
# Per https://www.nixhub.io/packages/unifi set to 10.0.162
unifi-pinned.url = "github:nixos/nixpkgs/a1bab9e494f5f4939442a57a58d0449a109593fe";
# Per https://www.nixhub.io/packages/mongodb-ce set to 8.2.3
mongodb-ce-pinned.url = "github:nixos/nixpkgs/a1bab9e494f5f4939442a57a58d0449a109593fe";
# Per https://www.nixhub.io/packages/unifi set to 17.0.18+8
openjdk-pinned.url = "github:nixos/nixpkgs/f665af0cdb70ed27e1bd8f9fdfecaf451260fc55";
};
output = {
unifi-pinned,
mongodb-ce-pinned,
openjdk-pinned,
}:
nixpkgs.lib.nixosSystem {
specialArgs = {
pkgs-unifi-pinned = import unifi-pinned {
system = "x86_64-linux";
config.allowUnfree = true;
};
pkgs-mongodb-ce-pinned = import mongodb-ce-pinned {
system = "x86_64-linux";
config.allowUnfree = true;
};
pkgs-openjdk-pinned = import openjdk-pinned {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
};
};
}
| 20:54:31 |
guiniol | and the unifi module I have | 20:55:32 |
guiniol | | 20:55:42 |
guiniol | {#pkgs, pkgs-mongodb-ce-pinned, pkgs-unifi-pinned, pkgs-openjdk-pinned, ...}:{ services = { unifi = { enable = true; openFirewall = true; #mongodbPackage = pkgs.mongodb-ce; mongodbPackage = pkgs-mongodb-ce-pinned.mongodb-ce; unifiPackage = pkgs-unifi-pinned.unifi; #jrePackage = pkgs.jdk21_headless; jrePackage = pkgs-openjdk-pinned.jdk17_headless; }; };} | 20:55:56 |
guiniol | * | 20:56:29 |
guiniol | * {
#pkgs,
pkgs-mongodb-ce-pinned,
pkgs-unifi-pinned,
pkgs-openjdk-pinned,
...
}:
{
services = {
unifi = {
enable = true;
openFirewall = true;
#mongodbPackage = pkgs.mongodb-ce;
mongodbPackage = pkgs-mongodb-ce-pinned.mongodb-ce;
unifiPackage = pkgs-unifi-pinned.unifi;
#jrePackage = pkgs.jdk21_headless;
jrePackage = pkgs-openjdk-pinned.jdk17_headless;
};
};
}
| 20:56:34 |
guiniol | Also, do I just open an issue on https://github.com/NixOS/nixpkgs if I can't figure this out? (I haven't found a relevant issue there, I did check). | 20:59:11 |
Dreamgineer | I feel like this is related to the database file not being migrated to 10.1.x | 20:59:49 |
Dreamgineer | or rather, mongodb version difference | 21:02:30 |
Dreamgineer | #mongodbPackage = pkgs.mongodb-ce;
has this always worked before?
| 21:03:15 |
guiniol | Yes, that was working. But even pinning to the version that the working build uses doesn't work now | 21:06:43 |
guiniol | I thought so too initially, but even wiping the data folder and starting from scratch doesn't work. | 21:07:27 |
guiniol | so now I don't think so anymore. I was thinking some crypto library that changed in java or something, but pinning java also didn't help and I'm not sure that I want to pin half the system libraries... | 21:08:49 |
guiniol | also, I can't just run the older build because other parts of the system updated their databases and won't start on the older build. Because it'd be too easy otherwise. | 21:09:31 |
| 6 Mar 2026 |
just1602 | https://github.com/NixOS/nix/pull/15380
Wut? | 22:12:00 |
piegames | Indeed | 22:58:14 |
just1602 | I guess it's one way tro write stuff in rust without linking issue | 23:14:16 |
piegames | Oh no that's something completely different | 23:20:42 |
piegames | This is not about writing some of the Nix evaluator in Rust. This is about writing the Nix code which runs within the evaluator in Rust | 23:21:12 |