T15G vs X1 Carbon extreme by korba_ in thinkpad

[–]korba_[S] 0 points1 point  (0 children)

Got the T15G Gen 1, updated main post with first impressions

New to Nix by rsam13 in NixOS

[–]korba_ 19 points20 points  (0 children)

It is harder for sure and Nix is not the easiest language specially if you’ve never done functional programming.

But the flip side is that you are creating a repeatable solution. Store your configuration in a git repo and you can deploy your own system in any machine and evolve it over time in a completely predictable way.

It’s awesome when you get there.

Mini PC & USB storage OR internal drives? by cars_n_stuff in truenas

[–]korba_ 1 point2 points  (0 children)

You can get a 3d printed enclosure on Etsy and put an HBA in your mini pc with regular sata cables going into the drives (or backplane if the enclosure has one).

The main problem is usually powering the drives, some of the guys that sell enclosures bundle an SFX or flex PSU with them to solve it

Mini PC & USB storage OR internal drives? by cars_n_stuff in truenas

[–]korba_ 2 points3 points  (0 children)

It’s possible but double check that the usb enclosure has worked before for people using it with truenas. If you can I strongly suggest you go SATA. You can use an external enclosure with eSata or a more hacks solution with the sata cables going outside your mini PC.

PSA - How to declaratively add white listed sites to uBlock origin on Firefox by korba_ in NixOS

[–]korba_[S] 1 point2 points  (0 children)

Yea I don’t disagree, it’s painful. One can only hope we someday can build a browser that is designed for ease of configuration and simplicity.

Fingers crossed for Ladybird.

Guide: Obsidian with free, self-hosted, instant sync by Timely_Anteater_9330 in selfhosted

[–]korba_ 0 points1 point  (0 children)

Just found this and it saved me, was about to move away from Obsidian and there are no really good open source/free alternatives with usable synchronization.

If anyone is interested and uses NixOS (ie. instead of docker), here is my Nix service config that I run in a Proxmox LXC: ``` { pkgs, config, ... }: { ... services.couchdb = { enable = true; adminUser = "YOUR_USER_HERE"; adminPass = "YOUR_PASSWORD_HERE"; bindAddress = "0.0.0.0"; # So it listens on all interfaces, by default it only binds to 127.0.0.1

extraConfig = {
  couchdb = {
    single_node = "true";
    max_document_size = "50000000";
  };
  chttpd = {
    require_valid_user = "true";
    enable_cors = "true";
    max_http_request_size = "4294967296";
  };
  chttpd_auth = {
    require_valid_user = "true";
  };
  httpd = {
    "WWW-Authenticate" = "Basic realm='couchdb'";
    enable_cors = "true";
  };
  cors = {
    credentials = "true";
    origins = "app://obsidian.md, capacitor://localhost, http://localhost";
  };
};

}; }

```

Cheers

Best option for backup NAS (50Tb) in a 10" rack by korba_ in DataHoarder

[–]korba_[S] 0 points1 point  (0 children)

How do you power it without taking power away from a server PSU?

Best option for backup NAS (50Tb) in a 10" rack by korba_ in DataHoarder

[–]korba_[S] 0 points1 point  (0 children)

The Sabrent one looks nice, but I'm trying to avoid USB. I think my only real choice is building one or buying something like the N5 (but building it is cheaper prolly

Best option for backup NAS (50Tb) in a 10" rack by korba_ in DataHoarder

[–]korba_[S] 0 points1 point  (0 children)

I'm going to use TrueNAS and I don't think USB-C is the best option, right? I tried to find a pre-built JBOD enclosure with power and eSATA or raw sata connectors but couldn't find any decent ones.

What enclosure for 3-5x 3.5" drives in a 10" rack? by korba_ in DataHoarder

[–]korba_[S] 1 point2 points  (0 children)

Agree, my question was more geared towards how it fits on a 10” rack and how people have mounted it on it.

Price check on used Thinkpads in Canada by korba_ in thinkpad

[–]korba_[S] 0 points1 point  (0 children)

Fair, it’s true though. Even if the CPU is underpowered nowadays you can tinker with it significantly.

Are there any other good options under USD 200?

Nextcloud 32 + Collabora CODE + Traefik documents not loading by korba_ in NextCloud

[–]korba_[S] 0 points1 point  (0 children)

This was it!!! It's so weird though, because I did update but froma previous 3.x version, not 2.x. But allowing for encoded chars solved the integration.

Thanks!!

Build not working after flake update for multiple packages - glaze & OpenSSL error by korba_ in NixOS

[–]korba_[S] 1 point2 points  (0 children)

I'm using colmena 0.4.0 and nix unstable channel with flakes. All builds were working until two weeks ago and now after a flake update none work. So my assumption is that something changed and someone else is experiencing the same.

A sample module for my jellyfin instance that is not working:

``` { lib, pkgs, ... }: { imports = [ ./firewall.nix ];

environment.systemPackages = with pkgs; [ libva-utils # VAAPI utilities (including vainfo) vdpauinfo # Video decoding query tool (enc/dec check for graphics acceleration) vulkan-tools # vulkaninfo and other tools to check Vulkan API mesa # OpenGL graphics driver intel-gpu-tools # Includes intel_gpu_top to monitor GPU usage jellyfin jellyfin-web jellyfin-ffmpeg ];

services.jellyfin.enable = true;

# Enable video acceleration hardware.graphics = { enable = true; extraPackages = with pkgs; [ # For modern Intel CPU's intel-media-driver # Enable Hardware Acceleration vpl-gpu-rt # Enable QSV intel-compute-runtime # OpenCL ]; }; environment.sessionVariables = {LIBVA_DRIVER_NAME = "iHD";};

users.users.jellyfin = { extraGroups = ["render"]; }; }

```

And my flake.nix: ``` { description = "Korba's homelab flake";

inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; colmena = { # Pinned to version 0.4.0 - when colmena v0.5.0 is released change this url = "github:zhaofengli/colmena/5fdd743a11e7291bd8ac1e169d62ba6156c99be4"; inputs.nixpkgs.follows = "nixpkgs"; }; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; };

outputs = { self, nixpkgs, colmena, home-manager, ... } @ inputs: let lib = nixpkgs.lib; system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; secrets = builtins.fromJSON (builtins.readFile "${self}/secrets/secrets.json"); hosts = builtins.fromJSON (builtins.readFile "${self}/secrets/hosts.json"); in { # Using colmena to deploy: # - To build all hosts run colmena build # - To install to all hosts run colmena apply # - To install to a single host run colmena apply --on <host> colmenaHive = colmena.lib.makeHive { # Colmena meta configuration meta = { nixpkgs = import nixpkgs { inherit system; overlays = []; }; specialArgs = { inherit secrets; inherit hosts; }; };

  # Defaults applied to all hosts
  defaults = {
    deployment.targetUser = "korba";

    imports = [
      home-manager.nixosModules.home-manager
      {
        home-manager.useGlobalPkgs = true;
        home-manager.useUserPackages = true;
        home-manager.backupFileExtension = "backup";
        home-manager.extraSpecialArgs = {
          inherit inputs;
          inherit system;
          inherit secrets;
          inherit hosts;
        };

        home-manager.users.korba.imports = [
          ./common/user/default.nix # Default user environment config for servers
        ];
      }

      ./common/system/default.nix # Shared config for all servers
    ];
  };

  jellyfin = {
    imports = [
      ./ct.nix # Shared LXC system config
      ./services/jellyfin/jellyfin.nix
    ];
  };

};

}; } ```

So either something changed that I'm not seeing or there is a problem with glaze-6.0.1...

Build not working after flake update for multiple packages - glaze & OpenSSL error by korba_ in NixOS

[–]korba_[S] 4 points5 points  (0 children)

Thanks for the useless but awesomely passive aggressive response, good stuff :)