!9IQChSjwSHXPPWTa:lix.systems

Lix

1122 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms313 Servers

Load older messages


SenderMessageTime
5 Mar 2026
@guiniol:matrix.orgguiniolBTW, 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:matrix.orgDreamgineerGeneric 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:matrix.orgDreamgineerHow did you install unifi exactly?20:44:03
@guiniol:matrix.orgguiniol
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:matrix.orgDreamgineeroh so just the website?20:44:22
@guiniol:matrix.orgguiniol
In reply to @dreamgineer:matrix.org
How did you install unifi exactly?
Using services.unifi
20:44:47
@guiniol:matrix.orgguiniol
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:matrix.orgDreamgineer There's an option to change JRE package, services.unifi.jrePackage. Have you tried that? 20:46:57
@guiniol:matrix.orgguiniol
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:matrix.orgDreamgineeryou can paste it here as codeblock if it isn't too big.20:48:50
@guiniol:matrix.orgguiniolhere goes my flake.nix (at least the relevant parts):20:54:19
@guiniol:matrix.orgguiniol
    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:matrix.orgguinioland the unifi module I have20:55:32
@guiniol:matrix.orgguiniol
20:55:42
@guiniol:matrix.orgguiniol {#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:matrix.orgguiniol *
20:56:29
@guiniol:matrix.orgguiniol *
{
#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:matrix.orgguiniolAlso, 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:matrix.orgDreamgineerI feel like this is related to the database file not being migrated to 10.1.x20:59:49
@dreamgineer:matrix.orgDreamgineeror rather, mongodb version difference21:02:30
@dreamgineer:matrix.orgDreamgineer
      #mongodbPackage = pkgs.mongodb-ce;

has this always worked before?

21:03:15
@guiniol:matrix.orgguiniolYes, that was working. But even pinning to the version that the working build uses doesn't work now21:06:43
@guiniol:matrix.orgguiniolI thought so too initially, but even wiping the data folder and starting from scratch doesn't work.21:07:27
@guiniol:matrix.orgguiniolso 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:matrix.orgguiniolalso, 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:systemli.orgjust1602https://github.com/NixOS/nix/pull/15380 Wut? 22:12:00
@piegames:flausch.socialpiegamesIndeed22:58:14
@just1602:systemli.orgjust1602I guess it's one way tro write stuff in rust without linking issue 23:14:16
@piegames:flausch.socialpiegamesOh no that's something completely different23:20:42
@piegames:flausch.socialpiegames 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

Show newer messages


Back to Room ListRoom Version: 10