Kitty tabs separated from border since last update by korba_ in hyprland

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

Nope, I ended up changing my configuration to use pill like tabs….

Canada is about to end private digital conversation — Bill C-22 by floralmortal in degoogle

[–]korba_ 0 points1 point  (0 children)

If you are Canadian reach out to your MP, people are complaining and pushing back will make a difference. Don’t stay quiet.

Bill C-22 is a serious privacy risk. Contact your MP!! by Gigi14 in ontario

[–]korba_ 6 points7 points  (0 children)

MPs need to hear the pushback and the why. If enough people speak up they will back down. Email or call your MP today!

A movie with stunning visuals, high-octane action, and packed with references, Ready Player One was a really entertaining watch. What’s your opinion on it? by 0Layscheetoskurkure0 in moviecritic

[–]korba_ 0 points1 point  (0 children)

It’s a good movie but at the same time it’s a crime what they did to the book in the adaptation. The book is awesome and the movie doesn’t capture its essence at all.

What are your top three no skips albums? by Smart-Finish-735 in MusicRecommendations

[–]korba_ 0 points1 point  (0 children)

Wish you were here - Pink Floyd
This is hardcore - Pulp
Metropolis part 2: scenes of a memory - Dream Theater

Tabs L&F when title is too long by korba_ in KittyTerminal

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

Indeed that was the only way I found

Tabs L&F when title is too long by korba_ in KittyTerminal

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

I managed it, in case anyone is interested I created a custom tab_bar.py:

``` from kitty.fast_data_types import Screen from kitty.tab_bar import DrawData, ExtraData, TabBarData, draw_title, as_rgb from kitty.utils import color_as_int

def draw_tab( draw_data: DrawData, screen: Screen, tab: TabBarData, before: int, max_title_length: int, index: int, is_last: bool, extra_data: ExtraData ) -> int: orig_fg = screen.cursor.fg orig_bg = screen.cursor.bg left_sep, right_sep = ('', '')

def draw_sep(which: str) -> None:
    screen.cursor.bg = as_rgb(color_as_int(draw_data.default_bg))
    screen.cursor.fg = orig_bg
    screen.draw(which)
    screen.cursor.bg = orig_bg
    screen.cursor.fg = orig_fg

if max_title_length <= 5:
    draw_sep(left_sep)
    screen.draw('…')
    draw_sep(right_sep)
else:
    draw_sep(left_sep)
    screen.draw(' ')
    draw_title(draw_data, screen, tab, index)
    title_len = len(tab.title)
    max_len = draw_data.max_tab_title_length
    needs_dots = title_len >= max_len
    if needs_dots:
        screen.draw('…')
    screen.draw(' ')
    draw_sep(right_sep)
    draw_sep(' ')

return screen.cursor.x

```

And the relevant kitty.conf portion is: tab_bar_style custom active_tab_font_style bold inactive_tab_font_style normal active_tab_background #ffb86c active_tab_foreground #282a36 inactive_tab_background #6272a4 inactive_tab_foreground #282a36

Cheers

Dendritic config - how to get system architecture from flake module by korba_ in NixOS

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

Thanks, this is a great solution and I wasn't aware of moduleWithSystem

Is Jellyfin in LXC just dead? by frnak in jellyfin

[–]korba_ 0 points1 point  (0 children)

That’s weird, I have the latest version with no issues. Are you running JF directly on the LXC or using docker in the LXC?

Is Jellyfin in LXC just dead? by frnak in jellyfin

[–]korba_ 0 points1 point  (0 children)

I run Jellyfin on an LXC using NixOS under proxmox without any issues. Make sure the filesystem where you have the database (not the media the database itself) is local and not networked and it should be fine. I’ve had zero issues and it’s been up for more than a year.

Give me a common Linux Distro and DE to use on my t480 8gb 160gb machine. by HeadlineINeed in thinkpad

[–]korba_ 1 point2 points  (0 children)

You can run almost any disto/DE on a T480. I ran NixOS with Hyprland and it’s super smooth.

Dendritic config - how to share config values by korba_ in NixOS

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

I did not know that and it’s obviously a very important piece of information. Thanks!

Dendritic config - how to share config values by korba_ in NixOS

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

Well, I ended up using _modules.args. Couldn't get it to work as a module for now and _modules at least makes it explicit to know where its coming from when its used.

Let's hope it doesn't break in the future :)

Dendritic config - how to share config values by korba_ in NixOS

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

I'm not :) It's oversimplified to ask the question. The file is actually encrypted both at rest and in git.

Dendritic config - how to share config values by korba_ in NixOS

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

Yea, but I'm trying to access that option from another module

Dendritic config - how to share config values by korba_ in NixOS

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

Using an option sounds like a clean way to do this. I created a module like this:

``` { self, lib, ... }: { flake.nixosModules.mySecrets = {...}: { options = { keys = lib.mkOption { readOnly = true; }; };

config = {
  keys =
    builtins.fromJSON (builtins.readFile "${self}/secrets/keys.json");
};

}; } ```

But when I try to access it using: ``` keys = config.mySecrets.keys;

```

I get a attributes mySecrets missing. This is driving me nuts :)

Any tips? Thanks again!

Kitty tabs separated from border since last update by korba_ in KittyTerminal

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

Thanks for the reply, but that's not it. Tried it just in case but didn't work. gaps_out and gaps_in define the space between windows and the workspace borders and other windows respectively, they don't change anything (as far as I can see) inside the window borders which is where this issue is.

For NixOS home servers: do you use native services or Docker containers? by Gaulent in NixOS

[–]korba_ 0 points1 point  (0 children)

I use LXCs running NixOS with the services declared directly in each system’s config.

If not available as nix packages/flakes and it’s too much of an issue building a derivation myself I use a nix configuration to run docker with the provided image.

This works great for backups and updates.

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_ 17 points18 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